Announcement Announcement Module
Collapse
No announcement yet.
Event-driven architecture Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Event-driven architecture

    Hi,

    Is there an easy way to incorporate events into Spring Python (i.e. in process not just using JMS) ?

  • #2
    If you are thinking about the type of events that Spring Java supports through the container, then no, we haven't implemented that yet.

    Comment


    • #3
      As a side note, I've already had someone suggest we need a Spring Python Integration module. Again, time is our biggest limitation.

      Comment


      • #4
        An idea I've been thinking of lately is to have an in-process message broker, something that would allow for following constructs:

        Code:
        # (pseudo code, not yet implemented)
        
        # module 1
        from springpython import broker
        
        def callback(event):
            # process event
            pass
        
        broker.sub("MessageName", callback)
        
        # module 2
        from springpython import broker
        
        class MyEventData(object):
            def __init__(self, foo, bar):
                self.foo = foo
                self.bar = bar
        
        event1 = MyEventData(1, 2)
        event2 = MyEventData(1, 2)
        
        # module1's callback will now receive those two events
        broker.pub("MessageName", event1)
        broker.pub("MessageName", event2)
        anwars99, is that what you meant? What sort of an event-driven architecture would you like to see?

        Comment

        Working...
        X