Questions tagged [stateless]

Stateless apps don't expose any information about what has happened or changed since it started running

Stateless apps don't expose any information about what has happened or changed since it started running. They give the same response to the same request, function or method call, every time. HTTP is stateless in its raw form - if you do a GET to a particular URL, you get (theoretically) the same response every time. The exception of course is when we start adding statefulness on top, e.g. with ASP.NET web apps :) But if you think of a static website with only HTML files and images, you'll know what I mean.

521 questions
6
votes
2 answers

non final field in stateless flutter widget

I have a stateless widget and while writing the code I am using a non-final field in the stateless widget and the ide keeps giving me warning that all the fields in stateless widget should be final But I don't understand why having a non-final field…
rahul Kushwaha
  • 2,395
  • 7
  • 32
  • 64
6
votes
1 answer

User specific data for items in a REST api

In a REST api what is the most efficient way to handle user specific data for items? For example, let's say there are item resources that can be favourited. A list of items can be accessed by: https://myservice.com/api/items (Full…
Itzalive
  • 370
  • 4
  • 14
6
votes
1 answer

How to write python code that can be self-updated without need to quit application?

It is easy to create highly integrated code in python, so the need to quit and restart an application when its code is changed is understandable. However, it surely must exist some strategies and models to be able to isolate parts of the code so it…
6
votes
3 answers

Is there a stateless version of the JPA EntityManager?

Hibernate has a Stateless Version of its Session: Does something similar exist for the JPA EntityManager? I.e. an EntityManager that does not use the first level cache?
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
6
votes
7 answers

What's the preferred method for authenticating users of a webpage in a RESTful way?

I'm developing a new experimental web-application framework, and I decided to give RESTful some attention. I've read up on the basics, and feel like I have a pretty good understanding of RESTful as a concept. I've got a system up and running, using…
Jonathan Hanson
  • 4,661
  • 1
  • 19
  • 16
6
votes
2 answers

Restful (and Stateless) Auth with Play Framework and Scala

I have recently been thinking about how to get my webframework/application-stack right. I'm slowly moving over to scala and functional programming (coming from Python with CherryPy). So it was natural to look into Play as it is the most widely…
AlessandroEmm
  • 698
  • 7
  • 23
6
votes
1 answer

thread safe, stateless design using Spring

I have assumed that if instance variables are managed by spring IOC, and are singletons that the desgin can be called stateless and threadsafe.This type of desgin could consequently be scaled to clustered servers. Am I correct in my…
NimChimpsky
  • 46,453
  • 60
  • 198
  • 311
5
votes
1 answer

Nifi 1.10.0-Using the new Stateless NiFi execution engine and command line

Got this feature,and there are two execution engine now---STATELESS AND STATEFUL,but i am not sure which scenarios do they fit separately? When i wanna update one or more parameter conveniently,use steteless execution engine and command line?If i…
Cong
  • 479
  • 4
  • 16
5
votes
1 answer

stateful and stateless methods of stream

In the interface Stream : The intermediate operations are classifiable in stateful and stateless. They impact the result of a parallel Stream. Only two terminal operations are nondeterministic methods: findAny() and forEach(Consumer). They impact…
Sam
  • 536
  • 5
  • 23
5
votes
1 answer

How does Spring Security handle JSESSIONID with various Session Creation and Session Fixation combinations?

I have a J2EE REST-based app using Spring Security 4.0.1.RELEASE. Needless to say, Spring documentation on sessionCreationPolicy and sessionFixation is sparse, aside from targeted questions here on StackOverflow. I'm using a Java-based config for…
Matt
  • 23,363
  • 39
  • 111
  • 152
5
votes
0 answers

How are CancellationToken Transported on Web Requests

I'm doing some research on Cancelling Async Requests through WebAPI, Recently I discovered that latest version of WebApi(not .NET-Core's), supports cancellation tokens. As a test I've written this code. [HttpGet] [Route("LongRequest")] public…
johnny 5
  • 19,893
  • 50
  • 121
  • 195
5
votes
2 answers

Why does the EJB Timer Service use Singleton as standard?

I have been studying ejb recently and I am also reading about the timer service as well, but even though I have read about Stateless, Stateful and Singleton types of Session Beans, I still have some trouble to figure out what makes the Timer Service…
M. K.
  • 51
  • 3
5
votes
4 answers

Stick to my REST guns or break statelessness? Advice needed

I wrote a RESTful servlet, and the UI developer wants to save the logged-in state on the server. He made this strange claim: "I haven't encountered a production REST implementation that is pure REST. The ones I've seen all have had the server…
Mark Lutton
  • 6,959
  • 7
  • 41
  • 57
5
votes
1 answer

Best 'logging' option on Amazon Cloud. RDS or SimpleDB?

My site's architecture includes ASP.Net & MySQL. I am planning to deploy it on Amazon Cloud. This would mean EC2 instance(s) and RDS. My query is regarding logging. I'm ensuring that my application is stateless, so logging on application tier is…
Kabeer
  • 4,138
  • 7
  • 40
  • 62
5
votes
2 answers

What does it imply to call a web service (SOAP over HTTP) stateless?

I had a concept that HTTP is stateless, so SOAP over HTTP (for web services) is also stateless. I used to think that state meant “state of the object”. For an example, suppose I have a class called Employee and methods called setSalary and…
Pritesh
  • 1,938
  • 7
  • 32
  • 46