I am new to C ++, but have a lot of experience in Java EE.
I need to write a small application that is very asynchronous. It receives data from HTTP and stores it in a queue (it must have guaranteed delivery and very high bandwidth), something like ActiveMQ or OpenMQ, possibly through JMS.
Then another C ++ application / listener extracts data from the queue (through some Listener, which is activated directly in the queue, not by the pool), connects to the MySQL database and performs some business logic calculations and sends a message to another Queue.
In Java EE, this will be a web application that will send messages to the JMS queue. Message-Driven Beans will be the consumer of these messages in the EJB module, and Session EJB will send messages to the outgoing JMS queue.
Can anyone with C ++ experience explain some basics to me:
Is JMS the only option for C ++ for guaranteed delivery queues? Do you offer ActiveMQ or something else, bearing in mind that the message "Consumer" will be in C ++.
Do I need to create some kind of multithreaded daemon in C ++ that listens for Queue messages or is it part of creating a stream (message consumption) for the ActiveMQ implementation of C + consumers?
Any other suggestions on how to implement the above scenario would be greatly appreciated.
EDITED: I would prefer the message broker and client to be in C ++. ActiveMQ is a Java product that we donβt really need.
source share