Giter Club home page Giter Club logo

Comments (11)

jroper avatar jroper commented on July 29, 2024 3

So, this has turned out to be a bit of a yak shave. There's a lot of things to solve. My progress is here:

https://github.com/jroper/cloudstate/tree/eventing

I haven't even started on projection support, just getting things ready. Here's what I've implemented:

  • Modified it so the event source isn't a Source, it takes a Flow and is responsible for running it.
  • Made acknowledgements so they execute after the handler has returned (previously, they were executed in parallel to the handler handling the event, meaning event processing was at most once). This is why the Source takes a Flow, the output of the Flow is the acknowledgement message references.
  • Made the Google Pubsub support use the streaming call properly - we send one subscription call, send the messages in the pull response through the handler, and then route the acknowledgements back into the input of the call (a circular graph), rather than making separate gRPC calls for it.
  • Added a RestartSource so that when there's a network/io failure/application error etc, the stream restarts.
  • Implemented support for more than just serialized Anys on the wire. We now support JSON, plain text, plain bytes, and protobufs (not wrapped in Any). We use Cloudevents metadata to pass type information.
  • Added support for Cloudevents. This metadata is not yet sent to/from the user functions, but it will be.

I'm now pretty close to actually implementing the projection support.

from cloudstate.

kikiya avatar kikiya commented on July 29, 2024 2

Current status video by @jroper - https://youtu.be/lan5Awqy-xI

from cloudstate.

octonato avatar octonato commented on July 29, 2024

@viktorklang, can we sync on that to avoid having different APIs? Unless this is something that needs to be completely different because of its nature.

But in any case, ultimately, it would be better if the underlying used API (not the one exposed to the client) is based on what we plan to build for general projections in Akka/Play/Lagom.

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

@renatocaval This Issue is not about creating a new API, it's more to establish the flow to what they will create their projections from/using. Initially we're likely to either use the Akka Persistence projections or create an ingress for Pipelines.

from cloudstate.

octonato avatar octonato commented on July 29, 2024

I got it. Thanks for the explanation.

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

from cloudstate.

ralphlaude avatar ralphlaude commented on July 29, 2024

Nice @jroper !

from cloudstate.

omidb avatar omidb commented on July 29, 2024

Hi ... Any new progress on this? I was wondering if it's possible to consume Kafka events and react to them using CloudState.

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

@omidb Reacting to Kafka events seems more like a Eventing-related question. You can implement support for Kafka and plug that into the Eventing Support (currently on Google Cloud PubSub support is built in).

from cloudstate.

omidb avatar omidb commented on July 29, 2024

@viktorklang Would you please point me to the docs for Eventing Support?

from cloudstate.

viktorklang avatar viktorklang commented on July 29, 2024

@omidb It has not been officially released yet, but you can see it here:

https://github.com/cloudstateio/cloudstate/blob/master/proxy/core/src/main/resources/reference.conf#L76

And how it can be used here: https://github.com/cloudstateio/cloudstate/blob/master/protocols/example/shoppingcart/shoppingcart.proto#L47

from cloudstate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.