Categories

See More
Popular Forum

MBA (4887) B.Tech (1769) Engineering (1486) Class 12 (1030) Study Abroad (1004) Computer Science and Engineering (988) Business Management Studies (865) BBA (846) Diploma (746) CAT (651) B.Com (648) B.Sc (643) JEE Mains (618) Mechanical Engineering (574) Exam (525) India (462) Career (452) All Time Q&A (439) Mass Communication (427) BCA (417) Science (384) Computers & IT (Non-Engg) (383) Medicine & Health Sciences (381) Hotel Management (373) Civil Engineering (353) MCA (349) Tuteehub Top Questions (348) Distance (340) Colleges in India (334)
See More
( 4 months ago )

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

General Tech Technology & Software
Max. 2000 characters
Replies

usr_profile.png
Karlie Kloss

User

( 4 months 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.

usr_profile.png
Karlie Kloss

User

( 4 months 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.

usr_profile.png
Liza Sain

User

( 4 months 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?

what's your interest


forum_ban8_5d8c5fd7cf6f7.gif