Click here to Skip to main content
15,887,214 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
Hello to everyone!
I have to implement a so called message queue program based on REST WITHOUT using any extra libraries or ready implementations as RabbitMQ , MSMQ and so on (but should be similar).
I just need a few comments and lines of code (C# , C++ , Java) to realize how it should work. The simplier explanation the more grateful I am!
Thank you in advance)!

What I have tried:

google search engine suggests programs based on ready implementations of message queues:(
Posted
Updated 22-May-16 23:56pm
Comments
Mehdi Gholam 23-May-16 1:36am    
Don't reinvent the wheel unless you know what you are doing.
BillWoodruff 23-May-16 2:24am    
Please come back here with specific questions after you have at least come up with a basic design, and made a choice of implementation platform/stack. Have you read any of the ... almost certainly useful to you ... articles listed on this page under "Related Questions" ?

1 solution

Her are some lines of code as principle solution:
C++
while( !isQueueEmpty() ) {
  Msg *msg = getMessage();
  
 if( msg->send() == OK ) {
    RemoveMsgFromQueue(msg);
 }
};


I hope you get it ;-)
(that the answer is at the same level as your question)

tip: But it makes no sense to write a program without the use of some libraries.
 
Share this answer
 
Comments
Dzianis Igaravich Leanenka 23-May-16 6:38am    
Thank you! That helps a bit)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900