Code Monkey home page Code Monkey logo

Comments (1)

jeremydmiller avatar jeremydmiller commented on August 30, 2024

Okay, so here's some more thoughts. I vote that we completely ignore the delayed message feature from FubuMVC just for the moment to simplify the MVP. A "transport" in Jasper will need to be able to send messages to other nodes and be able to listen for messages received from other nodes. In FubuMVC, we had the concept of a "reply channel" for a given message and transport that gave the receiving end of the message a means to call back to the original node with any required responses. That caused some trouble in the fubu timeline, so we might reconsider the approach.

To implement the in memory transport, there are a handful of interfaces I just pushed into Jasper that are somewhat simplified versions of the same thing in FubuMVC that a transport type will need to implement:

  1. IChannel - runtime support for sending or receiving messages from a single, logical queue
  2. ITransport - "knows" how to build channels for a given queue Uri and will have some logic to be determined later on how to connect a replay channel. Just assume that the ITransport signatures around the Reply Uri/Channel will change as we learn more.
  3. IMessageCallback - for a received message, this gives the rest of the message handling pipeline a way to tell the underlying queue to pop the message off the queue, requeu it, move it to error queues, etc.

I said "static" up above, but I think this should end up being scoped to the running application itself. What we can do in testing scenarios, is to share an instance of the in memory transport between different JasperRuntime's in order to do testing completely in memory.

from jasper.

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.