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
10
votes
2 answers

Opposite of Stateless Protocol?

I would like to know what the opposite of a 'stateless protocol' is. Am I correct in assuming that, seeing as HTTP is stateless, for example, then a protocol such as FTP is the opposite/one that maintains state? Thanks.
Mus
  • 7,290
  • 24
  • 86
  • 130
9
votes
3 answers

Are there techniques to prevent double submissions in stateless web applications?

I want to implement double submission prevention in an existing java web application (struts actually). Architecture wise we are talking about 2 to N possible application servers (tomcat) and one single database server (mysql). The individual…
9
votes
2 answers

Are WCF services stateless by default?

I've got a simple WCF service that lets clients/consumer applications log in by providing a username and password. If both the username and password are correct, the WCF service provides the client with a GUID. The GUID and the username are then…
rafale
  • 1,704
  • 6
  • 29
  • 43
9
votes
3 answers

Stateless web application, an urban legend?

I am trying to understand token-based authentication these days, which claims to be a stateless authentication method. And I met the concept of stateless web application. Below are some threads I read about: Use Spring MVC for Stateless web…
smwikipedia
  • 61,609
  • 92
  • 309
  • 482
8
votes
3 answers

advantages of stateful programming?

i was wondering about the benefits of stateless programming, and found someone who shared my question: Advantages of stateless programming? as i read through the answers though, it made me curious about the converse question. what are the…
8
votes
7 answers

Functional Equivalence in Java

I was reading Effective Java, and came across a condition where Joshua Bloch recommends something like class MyComparator extends Comparator{ private MyComparator(){} private static final MyComparator INSTANCE = new MyComparator(); …
Mohamed Anees A
  • 4,119
  • 1
  • 22
  • 35
8
votes
3 answers

RESTful web requests and user activity tracking websites

Someone asked me this question a couple of days ago and I didn't have an answer: As HTTP is a stateless protocol. When we open www.google.com, can it be called a REST call? What I think: When we make a search on google.com all info is passed…
Amit Tripathi
  • 7,003
  • 6
  • 32
  • 58
8
votes
2 answers

How to distinguish application state and resource state

I know that to make a stateless application, we need to transfer the user state back and forth instead of server holds the user state. However, there must be some states stored in the server, I read this article that the state stored in server is…
JaskeyLam
  • 15,405
  • 21
  • 114
  • 149
8
votes
2 answers

How can I make Wicket's "AjaxLink" Stateless?

I am building a Wicket web application which is going to have to handle a lot of simultaneous requests. I've setup a test environment and some jmeter scripts to do load testing and I notice I can reduce the CPU and memory footprint of my application…
Rolf
  • 7,098
  • 5
  • 38
  • 55
7
votes
3 answers

C++ static initialization of stateless class

Suppose I have a class T where T has no virtual functions. T instances have no state. T has static member instances of itself. T itself has no other state. Can the C++ static initialization fiasco ruin my program? I don't think so because even if…
Thomas Eding
  • 35,312
  • 13
  • 75
  • 106
7
votes
2 answers

Stateless vs Stateful Microservices

I am reading some information about stateless microservices. And my question is simple. Is it true that if a microservice is having some persistence storage - that makes it stateful microservice. Is that always true? Any opinions will be well…
saferJo
  • 497
  • 1
  • 5
  • 16
7
votes
1 answer

instance variables in stateless session beans

I have read this post and it doesn't answer my question. Stateless session bean with instance variables I am reading the JEE5 tutorial and on this page it states http://download.oracle.com/javaee/5/tutorial/doc/bnbly.html " Clients may, however,…
Robin Bajaj
  • 2,002
  • 4
  • 29
  • 47
7
votes
2 answers

How do you get the height of a stateless functional component that's a child?

I'm trying to get the height of a stateless child component, so that I'm able to use its height within a parent Class, but I am getting the following error: Invariant Violation: Stateless function components cannot have refs. Simplified code Parent…
a7dc
  • 3,323
  • 7
  • 32
  • 50
7
votes
1 answer

Accessing Service Fabric stateless service config values outside the service project

Is there a way to access Service Fabric Stateless Service's custom config values from a different class library project? I can access the configurations currently like this from the StatelessService itself. var configurationPackage = …
7
votes
1 answer

How to implement a stateless REST API

I am working on a REST API that will be used by developers writing mobile apps. Users will be able to use 3rd party services (Google, Twitter etc) to authenticate themselves, this is mainly handled by OAuth (depending on the service in question). We…
Andreas
  • 638
  • 2
  • 8
  • 14
1 2
3
34 35