juks / iso-8583-socket-queue

ISO 8583 gateway
MIT License
195 stars 111 forks source link

Listening to host messages from socket queue #62

Closed xwiz closed 3 years ago

xwiz commented 3 years ago

Hi, wonderful and important project. I have a question, in the scenario where we need to forward messages from the ISO host to a http service to obtain and send back a response instantly to the host, is there a performance optimal way you would recommend? Is it okay to modify the upstream listener? on data event to do this? Thanks

juks commented 3 years ago

Hi! There should be no performance issues while you are using non-blocking methods. So if you modify the upstream logic so that is will forward every message received - it should work fine.

xwiz commented 3 years ago

Thank you @juks