pypubsub - evaluating for use with a web application

59 views
Skip to first unread message

Dowwie

unread,
Dec 23, 2014, 7:49:16 AM12/23/14
to pypu...@googlegroups.com
Hello Oliver and company!

I'm in the process of learning the source for pysubsub but thought that in conjunction with this effort would just ask the group what it is that I'm trying to understand.   Where are pypubsub's limitations, generally speaking and also with respect to asynchronous / concurrent environments?  

Thanks in advance!



oliver

unread,
Dec 23, 2014, 8:45:36 AM12/23/14
to PyPubSub
Hi Dowwie, and welcome. With the information you provide I would likely be pointing out limitations that are not relevant. Could you be a little more specific, like what are you thinking you could use pubsub for? 

--
You received this message because you are subscribed to the Google Groups "pypubsub" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pypubsub+u...@googlegroups.com.
To post to this group, send email to pypu...@googlegroups.com.
Visit this group at http://groups.google.com/group/pypubsub.
For more options, visit https://groups.google.com/d/optout.


--
Oliver
Author of these Open Source: PyPubSub, Lua-iCxx, iof
Regular contributor on StackOverflow

Dowwie

unread,
Dec 23, 2014, 2:05:56 PM12/23/14
to pypu...@googlegroups.com
Some background, but probably way too much information:

I'm porting a security framework/platform, Apache Shiro, written in java, to python.  Their next major release, 2.0, re-factored quite a lot of source.  Part of the re-factoring includes migration of a template design pattern to something that is eventbus based.  Rather than use Apache Shiro's eventbus design, though, I intend to use pypubsub.  You've already put pypubsub through several iterations of feedback and I hope to benefit by that.  Shiro supports multithreaded processing, and its eventbus (in earn alpha dev) seems to be reflecting that through locking access to shared collections.  So, this has lead me to my inquiry about whether pypubsub could provide something as good, if not better, than what the shiro team has with their homebrew eventbus.

oliver

unread,
Dec 24, 2014, 12:17:05 AM12/24/14
to PyPubSub
It's not too much info, except that a lot of it is not relevant. What is relevant is that eventbus is a java library, therefore you should find a library with equivalent capabilities unless you want to change the design of the python version of shiro. So, tell us more about eventbus, what is the "essence" of its API? For pubsub, the essence is that an application registers callables for topics to the pubsub module, and the app's code can generate messages of a given topic; pubsub takes care of all the plumbing to get messages to the callables. Off the shelf, pubsub is designed for use within an application, athough using it between applications shoud be rather straightforward. Can you provide such summary description for eventbus? 
Reply all
Reply to author
Forward
0 new messages