aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
aster.cloud aster.cloud
  • /
  • Platforms
    • Public Cloud
    • On-Premise
    • Hybrid Cloud
    • Data
  • Architecture
    • Design
    • Solutions
    • Enterprise
  • Engineering
    • Automation
    • Software Engineering
    • Project Management
    • DevOps
  • Programming
    • Learning
  • Tools
  • About
  • Cloud-Native
  • Data

Top 11 Things You Didn’t Know About Cloud Native Statefulness

  • aster.cloud
  • September 15, 2022
  • 4 minute read
Scrabble showing database word
“Database” by christophe.benoit74 is licensed under CC BY 2.0.

 

1. You need more than ACID

An RDBMS’s atomicity, consistency, isolation, and durability are not what they seem to be.  Specifically, consistency and isolation have undergone a facelift in recent years.  Consistency (in the colloquial usage, see #4) is now tailored to the datasets and workloads of your specific use case, especially in the case of data intensive systems.


Partner with aster.cloud
for your next big idea.
Let us know here.



From our partners:

CITI.IO :: Business. Institutions. Society. Global Political Economy.
CYBERPOGO.COM :: For the Arts, Sciences, and Technology.
DADAHACKS.COM :: Parenting For The Rest Of Us.
ZEDISTA.COM :: Entertainment. Sports. Culture. Escape.
TAKUMAKU.COM :: For The Hearth And Home.
ASTER.CLOUD :: From The Cloud And Beyond.
LIWAIWAI.COM :: Intelligence, Inside and Outside.
GLOBALCLOUDPLATFORMS.COM :: For The World's Computing Needs.
FIREGULAMAN.COM :: For The Fire In The Belly Of The Coder.
ASTERCASTER.COM :: Supra Astra. Beyond The Stars.
BARTDAY.COM :: Prosperity For Everyone.

2. Consistency is not consistent

In the CAP theorem, Consistency means linearizability (the whole system acts as if there is one, and only one, copy of the data).  In ACID, consistency means the system’s data must always be in a ‘good state’.  That is to say the system has the ability to enforce correctness about its data through code.  This is, counterintuitively, a property of the application and not really the database (although the database can offer some enforcement guarantees such as foreign key or uniqueness constraints).  Applications have the power to put correct, or incorrect, data into the database.  The application relies on the database’s ability to provide atomicity and isolation to do this.  This is completely different from linearizability or even serializability, which is the gold standard for isolation.

3. The speed of your isolation model depends on your data model

Isolation is the property of a database that keeps concurrent transactions from running over each other.  Serializability is when the isolation is so strong that each transaction acts as if it is the only transaction running on the database.  There are many types of isolation, all of which fall into the weak and strong isolation categories.  For the most part there isn’t any free lunch.  The stronger the isolation (which is the property most people are actually thinking about when they think of ACID) the slower your transactions will be.  If your data model allows for a weaker isolation setting then you can take advantage of the latency reductions that come with weak isolation.

Read More  The Downsides Of Cloud-Native Solutions

4. You need some level of availability

For cloud native systems, users are at the point where they do not accept planned maintenance windows.  Regardless of how many (or few) ‘9s’ you have, planned maintenance windows are a thing of the past.  This means you will need to deploy applications using something like phoenix deployment strategy with rolling updates on multiple nodes in order to avoid downtime.

5. Partition tolerance is not negotiable

A common misconception about the CAP theorem is that you can use a combination that doesn’t include the ‘P’ (e.g. CA).  This isn’t the case.  Essentially, for any non-trivial application, you’ll need some form of partition tolerance.

6. Some distributed data algorithms are coarse grained

You may have heard that the Paxos and Raft algorithms are the solution for highly available and consistent data.  This is true in a sense but this data is coarse grained and tailored to the problem of configuration data and leader election.  You’ll need another solution for the correctness of your other, more complex, workload data.

7. You can’t ignore the split brain problem

Many believe that somehow their data will just correct itself even when two or more nodes think they are the leader.  If you aren’t specifically choosing some kind of conflict resolution such as last write wins, you are essentially begging for corrupted data and unpredictable results.

8. You can’t ignore data structures when reviewing functional requirements

When determining functional requirements for a system, it’s imperative to review data requirements in tandem and ask specific questions about the handling of any non-trivial persistent data. Tradeoffs made between data correctness and latency will influence, and sometimes limit, the technologies that can be used to achieve system requirements.

Read More  Data Fusion SAP Connectors

9. Data structures are difficult to track and match to a model

Some data models, such as ones that handle scheduling, aren’t categorized easily under their required isolation model.  This can be problematic when dealing with an ever changing code base.

10. Consensus won’t get you serializability

Just because you have a way to elect leaders (e.g. using Paxos) doesn’t mean that your data is correct.  You still need to solve the problem of cloud native availability (which requires replication) and some kind of isolation for the correctness.  Leaderless and multi-leader replication models do not lend themselves to strong isolation models.  Beware.

10. Multiput doesn’t mean serializability

Many databases have a multi-put option that will gladly insert or update your data in an non serializable way.  Just because your data is updated atomically doesn’t mean it is serializable.  Check your database vendor.

Conclusion

New players in the cloud native statefulness arena have unique challenges, especially if they have unique non-functional requirements. For example, the telco space has low latency requirements which would affect what isolation models (see #3) and data structures (see #9) are used to obtain their objectives.  Unfortunately, these decisions are often overlooked in the design phase and even harder to track during code updates.  In addition to being conscious of these challenges during the design phase, one solution is to implement a check for best practices in your CD pipeline (see https://github.com/cncf/cnf-testsuite/), as a warning for things that have gone awry.  Another is to check for stateful best practices through certifications.  For more information on cloud native certifications in the telco space, see https://www.cncf.io/certification/cnf/. For deeper discussion of these ideas and their application to cloud native network functions, see: https://vmblog.com/archive/2022/05/16/stateful-cnfs.aspx and/or register to attend Cloud Native Telco Day North America, a co-located event at KubeCon+CloudNativeCon in Detroit, MI on Monday, October 24, 2022.

Read More  Introducing Open Source Insights Data In BigQuery To Help Secure Software Supply Chains

 

 

By W. Watson and Denver Wiliams
Source CNCF


For enquiries, product placements, sponsorships, and collaborations, connect with us at [email protected]. We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

aster.cloud

Related Topics
  • ACID
  • Cloud Native Computing Foundation
  • CNCF
You May Also Like
Getting things done makes her feel amazing
View Post
  • Computing
  • Data
  • Featured
  • Learning
  • Tech
  • Technology

Nurturing Minds in the Digital Revolution

  • April 25, 2025
View Post
  • Data
  • Engineering

Hiding in Plain Site: Attackers Sneaking Malware into Images on Websites

  • January 16, 2025
IBM and Ferrari Premium Partner
View Post
  • Data
  • Engineering

IBM Selected as Official Fan Engagement and Data Analytics Partner for Scuderia Ferrari HP

  • November 7, 2024
dotlah-smartnation-singapore-lawrence-wong
View Post
  • Data
  • Enterprise
  • Technology

Growth, community and trust the ‘building blocks’ as Singapore refreshes Smart Nation strategies: PM Wong

  • October 8, 2024
nobel-prize-popular-physics-prize-2024-figure1
View Post
  • Data
  • Featured
  • Technology

They Used Physics To Find Patterns In Information

  • October 8, 2024
View Post
  • Cloud-Native
  • Multi-Cloud

Oracle Expands Multicloud Capabilities with AWS, Google Cloud, and Microsoft Azure

  • September 11, 2024
Cloud computing concept image double exposure Digitally Enhanced Smart City Concept with Cloud Computing
View Post
  • Cloud-Native
  • Computing
  • Hybrid Cloud
  • Multi-Cloud
  • Public Cloud

Make Your Business Resilient By Integrating These Best Practices Into Your Cloud Architecture

  • July 29, 2024
goswifties_number-crunching_202405_wm
View Post
  • Data
  • Featured

Of Nuggets And Tenders. To Know Or Not To Know, Is Not The Question. How To Become, Is.

  • May 25, 2024

Stay Connected!
LATEST
  • college-of-cardinals-2025 1
    The Definitive Who’s Who of the 2025 Papal Conclave
    • May 7, 2025
  • conclave-poster-black-smoke 2
    The World Is Revalidating Itself
    • May 6, 2025
  • oracle-ibm 3
    IBM and Oracle Expand Partnership to Advance Agentic AI and Hybrid Cloud
    • May 6, 2025
  • 4
    Conclave: How A New Pope Is Chosen
    • April 25, 2025
  • Getting things done makes her feel amazing 5
    Nurturing Minds in the Digital Revolution
    • April 25, 2025
  • 6
    AI is automating our jobs – but values need to change if we are to be liberated by it
    • April 17, 2025
  • 7
    Canonical Releases Ubuntu 25.04 Plucky Puffin
    • April 17, 2025
  • 8
    United States Army Enterprise Cloud Management Agency Expands its Oracle Defense Cloud Services
    • April 15, 2025
  • 9
    Tokyo Electron and IBM Renew Collaboration for Advanced Semiconductor Technology
    • April 2, 2025
  • 10
    IBM Accelerates Momentum in the as a Service Space with Growing Portfolio of Tools Simplifying Infrastructure Management
    • March 27, 2025
about
Hello World!

We are aster.cloud. We’re created by programmers for programmers.

Our site aims to provide guides, programming tips, reviews, and interesting materials for tech people and those who want to learn in general.

We would like to hear from you.

If you have any feedback, enquiries, or sponsorship request, kindly reach out to us at:

[email protected]
Most Popular
  • 1
    Tariffs, Trump, and Other Things That Start With T – They’re Not The Problem, It’s How We Use Them
    • March 25, 2025
  • 2
    IBM contributes key open-source projects to Linux Foundation to advance AI community participation
    • March 22, 2025
  • 3
    Co-op mode: New partners driving the future of gaming with AI
    • March 22, 2025
  • 4
    Mitsubishi Motors Canada Launches AI-Powered “Intelligent Companion” to Transform the 2025 Outlander Buying Experience
    • March 10, 2025
  • PiPiPi 5
    The Unexpected Pi-Fect Deals This March 14
    • March 13, 2025
  • /
  • Technology
  • Tools
  • About
  • Contact Us

Input your search keywords and press Enter.