by BehindJava

What is Data Offloading in Microservices

Home » microservices » What is Data Offloading in Microservices

In this tutorial, we are going to learn about Data Offloading in Microservices.

Data Offloading in Microservices

  • Microservices usually run in virtual machines, i.e., containers.
  • Virtual machines and containers are not stable due to which microservices can become unstable.
  • This means that microservices shouldn’t store any data in their local storage or in its memory data. Such as state or session data because, if the container or virtual machine gets deleted, all the data also gets deleted.
  • Instead, microservices must store all the data that they have locally, such as a state and session data in a shared database like Redis which is very common.