Publish Subscribe Prototype for Middleware