Skip to main content

Stateful Data, Stateless Database Schema, and Code

  • Chapter
  • First Online:
DevOps, DBAs, and DBaaS
  • 1553 Accesses

Abstract

Stateful and stateless programming can be defined as software code that maintains a state or data element, or sees each interaction without previous context. Stateful programming is the dominate sibling because any time a variable is set (i=1), a data element is captured (for example, capturing customer order information on an e-commerce site), a variable in a loop is incremented, or an array is used, a state is present. In and of itself, stateful is not a problem because state is needed for many transactional interactions. DevOps does not mandate that all code must become stateless, but there are times when stateless brings opportunity.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 44.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 59.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.mongodb.com/scale/dynamic-schema-design

  2. 2.

    https://www.mongodb.com/nosql-explained

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Michael S. Cuppett

About this chapter

Cite this chapter

Cuppett, M.S. (2016). Stateful Data, Stateless Database Schema, and Code. In: DevOps, DBAs, and DBaaS. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2208-9_5

Download citation

Publish with us

Policies and ethics