Lahja – A generic event bus implementation written in Python
1–10 of 74 posts
Re: Lahja – A generic event bus implementation written in Python
#2Re: Lahja – A generic event bus implementation written in Python
#3This feels quite a bit like Vert.x from the Java world, which flows data between components via an event bus.
Noob python question: does Python support reactive extensions and chaining? That would fit well on top of this too.
Re: Lahja – A generic event bus implementation written in Python
#4cannot make sense of this library. whats this for?
Re: Lahja – A generic event bus implementation written in Python
#5I’ve used Redis in the past for lightweight pub/sub and zeromq for IPC before we had adopted Python 3 (and I left that job before then). I hated juggling threads and queues before that and then having to run Redis just to run your program was a pain.
The syntax looks similar enough to both of those to get started quickly and easily.
I’ve been writing Go so much I don’t know how much this is “needed” in Python but the examples using context managers ring the “it’s Pythonic” bell.
Re: Lahja – A generic event bus implementation written in Python
#6EDIT: Thanks HN, try working in an industry where every new project is in Python 2, and have no intention to move on, before saying "moeve to 3", it doesn't help at all.
Re: Lahja – A generic event bus implementation written in Python
#7Love to try this out some day, a shame that this isn't in Python 2. EDIT: Thanks HN, try working in an industry where every new project is in Python 2, and have no intention to move on, before saying "moeve to 3", it doesn't help at all.
Re: Lahja – A generic event bus implementation written in Python
#8I'd be interested to see how well this holds up under load, especially compared to other common event bus patterns.
Re: Lahja – A generic event bus implementation written in Python
#9Love to try this out some day, a shame that this isn't in Python 2. EDIT: Thanks HN, try working in an industry where every new project is in Python 2, and have no intention to move on, before saying "moeve to 3", it doesn't help at all.
Python 2 is very close to being not supported anymore, which means no more security updates, etc.
Re: Lahja – A generic event bus implementation written in Python
#10Love to try this out some day, a shame that this isn't in Python 2. EDIT: Thanks HN, try working in an industry where every new project is in Python 2, and have no intention to move on, before saying "moeve to 3", it doesn't help at all.
Please, please don't use Python 2.
Not all of us move fast and break things here, unlike the web dev world.