Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction through Open socket connection  RSS feed

 
D Shilpa
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • 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.
 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • 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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!