স্টেটলেস সেবাগুলি অনুরোধের মধ্যে ক্লায়েন্ট স্টেট সংরক্ষণ করে না (প্রতিটি অনুরোধ স্বাধীন), যখন স্টেটফুল সেবাগুলি স্টেট বজায় রাখে। স্টেটলেসনেস স্কেলেবিলিটির জন্য গুরুত্বপূর্ণ — স্টেটলেস সেবাগুলি অনুভূমিকভাবে অনেক সহজে স্কেল করা যায়।
স্টেটলেস বনাম স্টেটফুল
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)
