Stateless protocol

A stateless protocol is a communication protocol in which the receiver must not retain session state from previous requests. The sender transfers relevant session state to the receiver in such a way that every request can be understood in isolation, that is without reference to session state from previous requests retained by the receiver.[1]

In contrast, a stateful protocol is a communication protocol in which the receiver may retain session state from previous requests.

In computer networks, examples of stateless protocols include the Internet Protocol (IP), which is the foundation for the Internet, and the Hypertext Transfer Protocol (HTTP), which is the foundation of the World Wide Web. Examples of stateful protocols include the Transmission Control Protocol (TCP) and the File Transfer Protocol (FTP).

Stateless protocols improve the properties of visibility, reliability, and scalability. Visibility is improved because a monitoring system does not have to look beyond a single request in order to determine its full nature. Reliability is improved because it eases the task of recovering from partial failures. Scalability is improved because not having to store session state between requests allows the server to quickly free resources and further simplifies implementation.

The disadvantage of stateless protocols is that they may decrease network performance by increasing the repetitive data sent in a series of requests, since that data cannot be left on the server and reused.

Examples

An HTTP server can understand each request in isolation.[2]

Contrast this with a traditional FTP server that conducts an interactive session with the user. During the session, a user is provided a means to be authenticated and set various variables (working directory, transfer mode), all stored on the server as part of the session state.

Stacking of stateless and stateful protocol layers

There can be complex interactions between stateful and stateless protocols among different protocol layers. For example, HTTP, a stateless protocol, is layered on top of TCP, a stateful protocol, which is layered on top of IP, another stateless protocol, which is routed on a network that employs BGP, another stateful protocol, to direct the IP packets riding on the network.

This stacking of layers continues even above HTTP. As a workaround for the lack of a retained session state, HTTP servers implement various session management methods,[3] typically utilizing a session identifier in an HTTP cookie referencing a session state stored on the server, effectively creating a stateful protocol on top of HTTP.[4] HTTP cookies violate the REST architectural style because even without referencing a session state stored on the server, they are independent[clarification needed] of session state (they affect previous pages of the same website in the browser history) and they have no defined semantics.[5]

See also

References

  1. ^ Fielding, Roy (2000). "3.4.3 Client-Stateless-Server (CSS)". Architectural Styles and the Design of Network-Based Software Architectures (Doctoral dissertation). University of California, Irvine. OCLC 45706361. Retrieved 2021-05-18.
  2. ^ Fielding, R.; Reschke, J. (2014). Fielding, R.; Reschke, J. (eds.). "RFC 7230 - Hypertext Transfer Protocol (HTTP/1.1): Message Syntax and Routing". ietf.org. doi:10.17487/RFC7230. Retrieved 20 August 2015.
  3. ^ "session management methods reviewed". C cookie bits. Toronto. Archived from the original on 2019-02-13. Retrieved 2011-04-12. The following material is intended to introduce the reader to the various techniques that developers have used to implement session tracking on the Web. The main operational characteristics of each method are mentioned in addition to the shortcomings that have been observed in usage. Additional information on session management can be found by searching the Internet. […]
  4. ^ Dwyer, Gareth (18 November 2020). "Stateful vs Stateless Architecture". Virtasant.
  5. ^ Fielding, Roy (2000). "6.3.4.2 Cookies". Architectural Styles and the Design of Network-Based Software Architectures (Doctoral dissertation). University of California, Irvine. OCLC 45706361. Retrieved 2021-05-24.

Read other articles:

Basilika Kepausan Rumah Suci LoretoItalia: Santuario Basilica Pontificia di Santa Casacode: it is deprecated Basilika Kepausan Rumah Suci LoretoLokasiLoreto, MarcheNegaraItaliaDenominasiGereja Katolik RomaArsitekturStatusKatedral, Basilika minorStatus fungsionalAktifAdministrasiKeuskupanPrelatur Teritorial Loreto Basilica della Santa Casa (Inggris: Basilika Kepausan Rumah Suci Loretocode: en is deprecated ) adalah sebuah gereja katedral, basilika minor dan Gua Maria Katolik yang terletak di L...

 

قريو باث   الإحداثيات 42°20′16″N 77°19′01″W / 42.3378°N 77.3169°W / 42.3378; -77.3169  [1] تاريخ التأسيس 1793  تقسيم إداري  البلد الولايات المتحدة[2]  التقسيم الأعلى مقاطعة ستوبين  عاصمة لـ مقاطعة ستوبين  خصائص جغرافية  المساحة 8.222932 كيلومتر مربع8.222929 كيلومت�...

 

Jolin TsaiNama Tionghoa蔡依林PinyinCài Yīlín (Mandarin)LeluhurHan China, Papora, BajauAsalTaiwanPekerjaanPenyanyi, PenariGenreMandopop, R&B, Dance-popLabelWarner MusicTahun aktif1999–sekarang Penghargaan Golden Melody AwardsBest Female Mandarin Artist2007 Dancing DivaMost Popular Female Artist/Group (popular vote)2007Best Song of the Year Artist 2013 The Great ArtistMTV Asia AwardsThe Style Award2006 Jolin Tsai (Hanzi: 蔡依林; Pinyin: Cài Yīlín; Wade–Giles: Ts'...

Nama ini menggunakan cara penamaan Spanyol: nama keluarga pertama atau paternalnya adalah Vázquez de Coronado dan nama keluarga kedua atau maternalnya adalah Luján. Francisco Vázquez de Coronado y Luján (1510 – 22 September 1554) adalah seorang conquistador Spanyol, yang mengunjungi New Mexico dan bagian lainnya yang sekarang merupakan bagian barat daya Amerika Serikat antara 1540 dan 1542. Coronado berharap untuk menaklukan Tujuh Kota Emas dalam mitos. Namanya sering dianglikanisa...

 

Wagga redirects here. For other uses, see Wagga (disambiguation). This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Wagga Wagga – news · newspapers · books · scholar · JSTOR (February 2023) (Learn how and when to remove this template message) City in New South Wales, AustraliaWagga WaggaNew South WalesAn aeria...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Mellieħa S.C. – news · newspapers · books · scholar · JSTOR (October 2022) (Learn how and when to remove this template message) Maltese sports club Football clubMellieħaFull nameMellieħa Sports ClubNickname(s)The Boys in BlueFounded1947; 77 year...

American musician (1947–2017) Gregg AllmanAllman performing in 1975BornGregory LeNoir Allman(1947-12-08)December 8, 1947Nashville, Tennessee, U.S.DiedMay 27, 2017(2017-05-27) (aged 69)Richmond Hill, Georgia, U.S.Resting placeRose Hill CemeteryOccupations Musician singer songwriter Years active1960–2017Spouses Shelley Kay Jefts ​ ​(m. 1971; div. 1972)​ Janice Blair ​ ​(m. 1973; div. 1974)&#...

 

Vitebsk, Vitsyebsk Ві́цебск, Ви́тебск BenderaLambangLocation of Vitebsk, shown within the Vitebsk VoblastCountrySubdivisionBelarusVitebskFounded947Populasi (2004) • Total342.381Zona waktuUTC+2 (EET) • Musim panas (DST)UTC+3 (EEST)Kode area telepon+375-21License plate2Situs webwww.vitebsk.by Koordinat: 55°11′N 30°10′E / 55.183°N 30.167°E / 55.183; 30.167 Vitebsk adalah sebuah kota di Belarus yang terletak didekat perb...

 

The Turning Point(Великий перелом)SutradaraFridrikh ErmlerDitulis olehBoris ChirskovPemeranMikhail DerzhavinPyotr AndriyevskyYuri TolubeyevAndrei AbrikosovSinematograferArkadi KoltsatyPerusahaanproduksiLenfilmTanggal rilis1945Durasi108 menitNegaraUni SovietBahasaRusia The Turning Point (bahasa Rusia: Великий перелом, translit. Velikij perelom) adalah film perang Uni Soviet berbahasa Rusia yang disutradarai Fridrikh Ermler dan diangkat dari skenario karya B...

Writing system Gregg shorthandScript type light-line semi-script alphabetic Stenography CreatorJohn Robert GreggTime period1888–presentLanguagesEnglish, Afrikaans, Bahasa Indonesia, Bahasa Malaysia, Catalan, Esperanto, French, German, Hebrew, Irish, Italian, Japanese, Mandarin Chinese, Polish, Portuguese, Russian, Spanish, Thai, and Tagalog This article contains phonetic transcriptions in the International Phonetic Alphabet (IPA). For an introductory guide on IPA symbols, see Help:...

 

この項目には、一部のコンピュータや閲覧ソフトで表示できない文字が含まれています(詳細)。 数字の大字(だいじ)は、漢数字の一種。通常用いる単純な字形の漢数字(小字)の代わりに同じ音の別の漢字を用いるものである。 概要 壱万円日本銀行券(「壱」が大字) 弐千円日本銀行券(「弐」が大字) 漢数字には「一」「二」「三」と続く小字と、「壱」「�...

 

  此条目页的主題是香港九龍的渡船街。关于其他地方的同名街道,請見「渡船街」。 Ferry Street渡船街渡船街與西九龍走廊的交匯路段,此段連同渡船街天橋隸屬於5號幹線。命名緣由命名文件:1941年10月24日憲報第1260號政府公告、1947年5月23日憲報第431號政府公告、1975年3月14日憲報第585號政府公告、2020年10月16日憲報第5984號政府公告命名日期1941年10月24日[1]道路...

'2022年阿肯色州聯邦參議員選舉 ← 2016 2022年11月8日 (2022-11-08) 2028 →   获提名人 約翰·博茲曼 娜塔莉·詹姆斯 政党 共和黨 民主党 民選得票 592437 280187 得票率 65.7% 31.1% 縣结果 聯邦眾議院選區博茲曼:     40–50%     50–60%     60–70%     70–80%     80–90% 詹姆斯:     50–6...

 

American college basketball season 2011–12 Saint Joseph's Hawks men's basketballPhiladelphia Big 5 co-championsNIT, First RoundConferenceAtlantic 10 ConferenceRecord20–14 (9–7 A-10)Head coachPhil Martelli (17th season)Assistant coaches Mark Bass David Duda Geoff Arnold Home arenaHagan ArenaSeasons← 2010–112012–13 → 2011–12 Atlantic 10 men's basketball standings vte Conf Overall Team W   L   PCT W   L   PCT Temple 13 – 3 ...

 

Language spoken in parts but not all of a country Local language redirects here. For the concept in formal language theory, see Local language (formal language). Not to be confused with National language or Nation language. This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages) This article needs additional citations for verification. Please help improve this article by adding citations to relia...

Phenomenon in North Korea Part of a series onHuman rights in North Korea Human rights abuses Human rights in North Korea CensorshipMedia Corruption Freedom of religion Disability PrisonsKwanliso (concentration camps) ProstitutionKippumjo (Pleasure Squad) Songbun (ascribed social status) Slavery (Human trafficking) Executions Racism Human experimentation Persecution of Christians Political prisons (Kwanliso) Kaechon (No. 14) Yodok (No. 15 - closed) Hwasong (No. 16) Pukchang (No. 18) Hoeryong (...

 

Indoor arena in Chicago, Illinois, U.S. For the Ukrainian political party formerly known as United Centre, see Andriy Baloha's Team. For the Chilean political party, see United Centre (Chile). United CenterThe House That Jordan BuiltThe UCThe Madhouse on MadisonUnited Center in September 2015United CenterLocation in ChicagoShow map of ChicagoUnited CenterLocation in IllinoisShow map of IllinoisUnited CenterLocation in the United StatesShow map of the United StatesAddress1901 West Madison Stre...

 

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Fiat 238 – news · newspapers · books · scholar · JSTOR (March 2019) (Learn how and when to remove this message) Motor vehicle Fiat 238 EOverviewManufacturerFiatAlso calledFiat 238 MiraProduction1965-1983Body and chassisClassVan (M)LayoutFF layoutRelatedAut...

Disambiguazione – Se stai cercando altri significati, vedi Beverly Hills (disambigua). Questa voce o sezione sull'argomento centri abitati della California non cita le fonti necessarie o quelle presenti sono insufficienti. Puoi migliorare questa voce aggiungendo citazioni da fonti attendibili secondo le linee guida sull'uso delle fonti. Segui i suggerimenti del progetto di riferimento. Beverly HillscomuneCity of Beverly Hills Beverly Hills – VedutaBeverly Hills all'angolo tra Rodeo ...

 

Voce principale: SC Rot-Weiß Oberhausen-Rhld. 1904. SC Rot-Weiß Oberhausen-Rhld. 1904Stagione 1998-1999Sport calcio Squadra RW Oberhausen Allenatore Gerd vom Bruch (1ª-9ª) Aleksandar Ristić (10ª-34ª) 2. Bundesliga12º posto Coppa di GermaniaSemifinale Maggiori presenzeCampionato: Weber (33)Totale: Weber (38) Miglior marcatoreCampionato: Weber (14)Totale: Weber (20) StadioNiederrheinstadion Maggior numero di spettatori8 163 vs. Colonia Minor numero di spettatori1 942 vs....