Eventual consistency and cache

What is it?

Eventual consistency is a fancy name of doing something and only expecting the changed state after a while. And there is a guarantee that you will eventually get the expected state. Hence, consistency.

How to deal with it?

First, let’s simply ignore the cache for, like 1 minute, after creating a new template. That would be enough for the WhatsApp API to return the newly created template.

--

--

A software developer sharing about JavaScript and Go. Check my extension OneSidebar.com for navigating GitHub ⎯ olivernguyen.io

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Oliver Nguyen

A software developer sharing about JavaScript and Go. Check my extension OneSidebar.com for navigating GitHub ⎯ olivernguyen.io