Announcement Announcement Module
Collapse
No announcement yet.
Is it good to use Spring Integration TCP Adapters in Java Real-Time Applications? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is it good to use Spring Integration TCP Adapters in Java Real-Time Applications?

    Is it good to use Spring Integration TCP Adapters in Java Real-Time Applications where the application has target to meet SLA as 2ms?

  • #2
    Using the TCP adapters (especially with the length header serializer) is probably the most efficient of all the adapters, due to the lightweight protocol; but there is much more involved in SLA than inter-system communication.

    Comment


    • #3
      Thanks Russell, The requirement is the TCP Server received two types of messages 1) line feed indicator and 2) Multi byte length indicator. The system is expected to handle 2.5 million transactions in a day as the maximum target.

      Comment


      • #4
        It really depends on the size of the message because, for a line feed EOL, you need to examine every byte to see if it's the LF. The length-header protocol is much more efficient.

        That said, it really depends on what you have to do with the message when you receive it; even a simple parser looking for a linefeed is likely to be noise compared with the actual application code.

        We currently don't have an LF only (de)serializer but you can model a custom one after the ByteArrayCrLfSerializer and/or the ByteArrayStxEtxSerializer.

        Comment


        • #5
          Thank you, ow to run multiple TCP port listeners in one java process?

          Thank you, How to run multiple TCP port listeners in one java process using Spring TCP, I saw some sample code using single TCP port, Please share any sample code using for multiple TCP port listeners. (i.e. One java program listens ports such as 9001, 9002, 9004 ..., 9010)

          Comment


          • #6
            How about having multiple inbound channel adapter listening to the ports you want?

            Comment


            • #7
              Yes

              Yes, looking for similar thing

              Comment


              • #8
                How to run multiple TCP port listeners in one java process ...
                Yes, you would need to configure a connection factory for each port.

                Comment


                • #9
                  Thank you

                  Thank you very much

                  Comment

                  Working...
                  X