Click here to Skip to main content
13,591,625 members
Rate this:
 
Please Sign up or sign in to vote.
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 22-May-16 19:27pm
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Her are some lines of code as principle solution:
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.
  Permalink  
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)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web04 | 2.8.180618.1 | Last Updated 23 May 2016
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100