Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    What you suggest then would be to pass the bytes or Any, this would not involve an extra serialization / deserialization step?
    pass the bytes of the types involved to the Rust webassembly functions*
    Adriano Santos
    @sleipnir
    I had thought of wrapper types that would be passed and received from Rust functions and these types would have methods for serializing and deserializing via protobuf. But I don't know if that would be functional in both directions
    Marcel Lanz
    @marcellanz
    marshalling (Go terms here) a pb message to an Any involves "moving bytes around"; so I think yes.
    Adriano Santos
    @sleipnir
    I go to my drum class and I'll be right back :D
    Marcel Lanz
    @marcellanz
    I don't know wasm good enough, but I assume Any types might be the most portable types.
    Cool, enjoy :)
    Adriano Santos
    @sleipnir
    I don't know how to port Any efficiently, but we'll discuss the details in another forum of ours
    Marcel Lanz
    @marcellanz
    I agree.
    Adriano Santos
    @sleipnir
    \0/
    Marcel Lanz
    @marcellanz
    Cool @sleipnir :D
    Guy Youansi
    @ralphlaude
    @sleipnir and @marcellanz really good idea with Rust and wasm :)
    Marcel Lanz
    @marcellanz
    @ralphlaude I like Rust. I hoped that Go's WebAssembly Support would be more flexible; but that will change I think. Rust like WebAssembly where greatly pushed by Mozilla, that slowed down a bit for the last year but might accelerate again.
    2 replies
    Guy Youansi
    @ralphlaude
    :)
    otun oluwaseyi
    @otunoluwaseyi_twitter
    How do u read the event from the data store is there any example i can look at
    1 reply
    Marcel Lanz
    @marcellanz
    Hi @otunoluwaseyi_twitter, can you explain us your usecase? Cloudstate, depending on the state model, provides you with every command you handle with the current state. With the eventsourcing state model you therefore get your state as snapshots and event " automagically".
    5 replies
    Adriano Santos
    @sleipnir
    @viktorklang cloudstate machine?
    😊
    LunaYin
    @LunaYin
    Hi expert, could you please offer some detailed guide for using Postgres as storage? I tried but the sidecar container always reports a connection refused error.
    Guy Youansi
    @ralphlaude
    Hi @LunaYin could you please provide more insights for the failure?
    LunaYin
    @LunaYin
    @ralphlaude I want to try running the js-shopping cart example with Postgresql. First I deploy PostgreSQL in GKE using Statefulset. Then create the statefulstore and service. the sidecar container reports error 2021-01-20 08:30:01.054 ERROR akka.actor.OneForOneStrategy - db - Connection is not available, request timed out after 5000ms. java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 5000ms. I guess I apply the wrong statefulstore config
    @ralphlaude this is my store : apiVersion: cloudstate.io/v1alpha1 kind: StatefulStore metadata: name: postgres spec: postgres: host: postgres-demo.default.svc.cluster.local credentials: usernameKey: demopostgresadmin passwordKey: demopostgrespwd databaseKey: demopostgresdb
    LunaYin
    @LunaYin
    more infomation: Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "cloudstate"
    Guy Youansi
    @ralphlaude
    @LunaYin, you should changed the properties here (https://github.com/cloudstateio/cloudstate/blob/master/proxy/postgres/src/main/resources/application.conf) or set those properties as ENV variables for your statefulset. You have some hints here (https://github.com/cloudstateio/cloudstate/blob/master/bin/install-postgres.sh). I hope it hepls
    helm install postgres bitnami/postgresql --version 9.1.4 --set persistence.enabled=false --set postgresqlUsername=cloudstate --set postgresqlPassword=cloudstate --set postgresqlDatabase=cloudstate
    LunaYin
    @LunaYin
    @ralphlaude this fix my problem, thanks a lot!
    1 reply
    LunaYin
    @LunaYin

    I also tried to modify my statefulset

    template:
        metadata:
          labels:
            app: postgres
        spec:
          containers:
          - name: postgres
            image: postgres:latest
            env:
              - name: POSTGRES_DATABASE
                value: postgredemo
              - name: POSTGRES_USERNAME
                value: postgredemo
              - name: POSTGRES_USERNAME
                value: postgredemo

    but the env variables are not passed into the cloudstate sidecar, it still use "cloudstate" as user name

    2 replies
    raboof
    @raboof:matrix.org
    [m]
    based on a proxy docker image, is there a way to find out what revision of the code it is running? It seems to be '0.0.0' in cloudstate-proxy-dev-mode:latest :D
    1 reply
    raboof
    @raboof:matrix.org
    [m]
    or is that image no longer the right one to use? it doesn't seem to have been updated for the last 4 months.
    @raboof:matrix.org the image is superfluous now, see link above.
    raboof
    @raboof:matrix.org
    [m]
    ah, great, thanks!
    Marcel Lanz
    @marcellanz
    your're most welcome :)
    Guy Youansi
    @ralphlaude
    @pvlugter @marcellanz @sleipnir do you about the next contributor call? thanks :)
    Peter Vlugter
    @pvlugter
    Hi @ralphlaude, I was there briefly but it's only been James and I recently.
    I can join again if you're interested in chatting.
    Guy Youansi
    @ralphlaude
    I will join thanks
    Peter Vlugter
    @pvlugter
    Cloudstate contributors, since it's difficult for people to make this time, we'll be suspending the contributor calls for now. Let's continue to discuss things asynchronously, here and on Github.
    Guy Youansi
    @ralphlaude
    @pvlugter understood and thanks for the note.
    Adriano Santos
    @sleipnir
    Hi @ralphlaude Forgive me I was not aware that the meetings had happened again since no one else has warned here. Anyway things are a little frozen in CloudState from what I understand.
    Guy Youansi
    @ralphlaude
    Hi @sleipnir no worry and I was able to clarifiy it and everything is fine. It is true and things are a bit frozen here on Cloudstate
    Marcel Lanz
    @marcellanz
    🥶 frozen, yes.
    -12°C here 🇨🇭; feels like -30°C and will probably not getting any better. Can't work when its that cold, looking for an Island 🏝 much much warmer.
    Adriano Santos
    @sleipnir
    😆😨
    Guy Youansi
    @ralphlaude
    It is really cold here :smile: also
    Adriano Santos
    @sleipnir
    @marcellanz @ralphlaude Come to Brazil. Here generally (about 300 days a year) it is very hot :D
    Marcel Lanz
    @marcellanz
    @sleipnir I've planned to visit south america by motorcycle, but at the moment the whole world being closed does not support my plans at the moment.
    Adriano Santos
    @sleipnir
    \0/
    Guy Youansi
    @ralphlaude
    Thanks for the invitation :)