I need to maintain one permanent connection of sockets to the payment gateway and use it to send financial messages and receive confirmation for it. My application will then be used by various clients, and therefore I need to develop a way to handle them simultaneously and handle issues like timeouts and retries, etc.
Right now, my main problem is accessing the socket ... should I just block sending and returning to the request and reply to the message, or configure the queue system and match them? I will also send periodic echoes to another thread.
Oh, and I plan to do it in C #. I would appreciate some general guidance on this.
Johnc
source
share