நிலை வைத்திருக்காத (Stateless) சேவைகள் கோரிக்கைகளுக்கு இடையில் க्लায়েंट நிலையை சேமிக்கவில்லை (ஒவ்வொரு கோரிக்கையும் சுயாதீனம்), அதேவேளை நிலை வைத்திருக்கும் (Stateful) சேவைகள் நிலையை பராமரிக்கின்றன. நிலை வைத்திருக்காமை அளவிடலுக்கு முக்கியம் — நிலை வைத்திருக்காத சேவைகள் கிடைமட்ടமாக அளவிட மிகவும் எளிதாக இருக்கின்றன.
Stateless vs stateful
STATELESS → the service keeps NO client state between requests:
→ each request contains all needed info; any server can handle any request
→ state lives ELSEWHERE (database, cache, client, token) if needed
STATEFUL → the service MAINTAINS state across requests:
→ a specific server holds a client's state (session in memory, etc.)
→ requests must go to the SAME server (or state must be shared/synchronized)
