• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Transaction through Open socket connection

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to implement a solution of sending transactions over a open socket connection to the back end system. The current architecture of the application uses open socket connection - send transaction - close transaction. This architecture helps achieve a lot of concurrent transactions.

Changing the architecture, where transactions will be sent over an open socket connection (for the server life), what would be the approach that I can take without impacting performance.
 
Bartender
Posts: 1638
IntelliJ IDE MySQL Database Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Shilpa:
This architecture helps achieve a lot of concurrent transactions.


It depends more on the server implementation and not really on you as a client. Anyways that was just an FYI!

Shilpa:
Changing the architecture, where transactions will be sent over an open socket connection (for the server life), what would be the approach that I can take without impacting performance.



As far as i understand, you want to pool the socket connection instead of opening and closing per transaction.(better call it request, not to get confused with application level transaction)
Is my understanding correct?
If yes, then try to google on "connection pool", you will get a lot of results like this that will help you understand the concept. Although most of the articles you will find will be related to JDBC but you can apply the concept for any type of connections.
 
Danger, 10,000 volts, very electic .... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic