Giter Site home page Giter Site logo

mustafaturan / bus Goto Github PK

View Code? Open in Web Editor NEW
329.0 5.0 25.0 92 KB

🔊Minimalist message bus implementation for internal communication with zero-allocation magic on Emit

Home Page: https://pkg.go.dev/github.com/mustafaturan/bus/v3?tab=doc

License: Apache License 2.0

Go 100.00%
eventbus message-bus pubsub message-broker go go-package go-library zero-allocation zero-alloc

bus's People

Contributors

dsincl12 avatar mustafaturan avatar tpberntsen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bus's Issues

Clarify Semantics

From the readme it's unclear how events are consumed. Will events always make it to all consumers? or can a consumer stop the processing? What is the order of processing of events? Is the order guaranteed? Would be great to clarify this.

How to setup the point of synchronization between consumers and producer?

I see this in example code:

// give some time to process events for async consumers
time.Sleep(time.Millisecond * 25)

This approach can not be use in production, Is there a more formal way to setup producer and consumers join point?

If there is one consumer, within Event.Data can use channel or something to synchronize, buf if with multiple consumers, this approach is not feasible.

Any suggestion?

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.