Publish/Subscribe
Before you submit code to the Code Repository, please make sure you have read the following:
Introduction - Submission Guidelines - Submission Procedure - (post questions here)
|
Publish/Subscribe
|
|
|||||||||||||||||||||||
|
|
||||||||||||||||||||||
This is my realisation of topic based Publish/Subscribe Software Design Pattern. http://en.wikipedia.org/wiki/Publish/subscribe http://en.wikipedia.org/wiki/Observer_pattern The dispatcher is the main task of this pattern, which administrates a topic table. If any (Queue- Notifier- User Event- and TCP/IP based) client starts, it should register himself by the dispatcher, so the dispatcher adds them into the topic table. The next step the client should do - is to subscribe to topics. If the dispatcher receives a message from any client, it looks which clients want to receive this message and send it only to this clients. So you can rediuce some data traffic in your programm. If a client is no more interested in a topic, it can unsubscribe from this topic. If a client want to be removed from the table, it should unregister. So you can dynamically start/stop clients and realize a software, which is plugin able. Supporting TCP/IP protocoll gives you a chance to communicate between programm modules, different applications, and different computers over network. Therefore you can connect two or more dispatchers and select topics, which you want to send or receive. This feature gives you a big advantage - remote debugging. |
|||||||||||||||||||||||
|
|
||||||||||||||||||||||
| Approved by mballa on Dec 7 2007, 05:28 AM | |||||||||||||||||||||||
Saved Versions
| Name | Filename | Updated | Operations |
|---|---|---|---|
| Publish/Subscribe | Pubsub_v1_0_1.zip | 9th November 2007 - 04:14 PM | |
| Publish/Subscribe | Pubsub_v1_0_0.zip | 8th November 2007 - 05:05 PM |
|
Code Repository Statistics
| Last ten submissions accepted · Downloads system statistics | |
| 1 user(s) active in the past 15 minutes | |
![]() |
1 guests, 0 members, 0 anonymous members |
| Code Repository Statistics | |
![]() |
We have a total of 69 files in 13 categories A total of 37 unique authors have submitted to our site There have been 23974 logged downloads to date The latest file submitted was LVClass API by normandinf (submitted Yesterday, 01:08 PM) |
| Time is now: 15th October 2008 - 08:25 PM |