What Java based technology is used for building Stateless Applications? [closed]

General Tech Technology & Software 2 years ago

0 3 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Technology & Software related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (3)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

 

One of our applications is going to become more of a Micro-services based architecture with drivers being cloud readiness, responsive, cross channel, embracing APIs, heavy client side architecture, stateless applications, dynamically scalable applications etc.

What do they mean by stateless applications here? What are the web technologies available to build stateless applications?

profilepic.png
manpreet 2 years ago

 

'Stateless' means that the server-side application isn't keeping information about individual clients across calls to it. Many applications keep information in the HTTP session (maintaining conversational state or caching things that are likely to be needed again), a stateless application would not do this. The client side can make calls to the server side and keep state locally.

Stateless is good because it means any server can service any request, without having to resort to clustering (where HTTP sessions have to be replicated across servers this bogs down as the number of servers increases) or sticky sessions (sending requests to the same server where the user started a session, so a server's load can get unbalanced easily). With no state the requests can be distributed across the servers more evenly, and if one goes down it's less of a problem.

The server can expose data through web service calls using REST or SOAP. There are a lot of frameworks to help you expose services whether you use Spring or pure Java EE. The client can call these services and maintain a local model within the browser as part of the DOM using AngularJs. Having services return data as JSON makes them more convenient for the client-side JavaScript to consume.


0 views   0 shares

profilepic.png
manpreet 2 years ago

 

'Stateless' means that the server-side application isn't keeping https://forum.tuteehub.com/tag/information">information about individual clients across https://forum.tuteehub.com/tag/calls">calls to it. Many applications keep https://forum.tuteehub.com/tag/information">information in the HTTP session (maintaining conversational state or caching things that are likely to be needed again), a stateless application would not do this. The client side can make https://forum.tuteehub.com/tag/calls">calls to the server side and keep state locally.

Stateless is good because it means any server can service any request, without having to resort to clustering (where HTTP https://forum.tuteehub.com/tag/sessions">sessions have to be replicated across servers this bogs down as the number of servers increases) or sticky https://forum.tuteehub.com/tag/sessions">sessions (sending requests to the same server where the user started a session, so a server's load can get unbalanced easily). With no state the requests can be distributed across the servers more evenly, and if one goes down it's less of a problem.

The server can expose data through web service https://forum.tuteehub.com/tag/calls">calls using REST or SOAP. There are a lot of frameworks to help you expose services whether you use Spring or pure Java EE. The client can call these services and maintain a local model within the browser as part of the DOM using AngularJs. Having services return data as JSON makes them more convenient for the client-side JavaScript to consume.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.