Skip to content
GigaSpaces Logo GigaSpaces Logo
  • Products
    • Our Products
      • eRAG
        • GenAI Catalyst
        • Instant Data
        • Respond Proactively
        • Act Autonomously
      • Smart DIH
      • XAP
    • Solutions for
      • Pharma
      • Procurement
    • vid-icon

      Conventional RAG Falls Short with Enterprise Databases

      Watch the Webinaricon
  • Solutions
    • Business Solutions
      • Digital Innovation Over Legacy Systems
      • Integration Data Hub
      • API Scaling
      • Hybrid / Multi-cloud Integration
      • Customer 360
      • Industry Solutions
      • Retail
      • Financial Services
      • Insurance Companies
    • vid-icon

      Massimo Pezzini, Gartner Analyst Emeritus

      5 Top Use Cases For Driving Business With Data Hub Architecture

      Watch the Webinaricon
  • How it Works
    • eRAG Technology Overview
      • AI-Ready, IT-Friendly
      • Semantic Reasoning
      • Questions to SQL Queries
      • Asked & Answered in Natural Language
      • Multiple Data Sources
      • Proactive AI Governance
    • vid-icon

      Ensure GenAI compliance and governance

      Read the Whitepapericon
  • Success Stories
    • By Use Case
      • Procurement
      • Operations
      • Budget Management
      • Sales Operations
      • Service Providers
      • Utilities Management
      • Restaurant Management
    • By Industry
      • Logistics
      • Pharma
      • Education
      • Retail
      • Shipping
      • Energy
      • Hospitality
    • vid-icon

      Monkey See, AI Do - All about CUA

      Watch Webinaricon
  • Resources
    • Content Hub
      • Case Studies
      • Webinars
      • Q&As
      • Videos
      • Whitepapers & Brochures
      • Events
      • Glossary
      • Blog
      • FAQs
      • Technical Documentation
    • vid-icon

      Taking the AI leap from RAG to TAG

      Read the Blogicon
  • Company
    • Our Company
      • About
      • Customers
      • Management
      • Board Members
      • Investors
      • News
      • Press Releases
      • Careers
    • col2
      • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
      • Support & Services
      • Services
      • Support
    • vid-icon

      GigaSpaces, IBM & AWS make AI safer

      Read Howicon
  • Book a Demo
  • Products
    • Our Products
      • eRAG
        • GenAI Catalyst
        • Instant Data
        • Respond Proactively
        • Act Autonomously
      • Smart DIH
      • XAP
    • Solutions for
      • Pharma
      • Procurement
    • vid-icon

      Conventional RAG Falls Short with Enterprise Databases

      Watch the Webinaricon
  • Solutions
    • Business Solutions
      • Digital Innovation Over Legacy Systems
      • Integration Data Hub
      • API Scaling
      • Hybrid / Multi-cloud Integration
      • Customer 360
      • Industry Solutions
      • Retail
      • Financial Services
      • Insurance Companies
    • vid-icon

      Massimo Pezzini, Gartner Analyst Emeritus

      5 Top Use Cases For Driving Business With Data Hub Architecture

      Watch the Webinaricon
  • How it Works
    • eRAG Technology Overview
      • AI-Ready, IT-Friendly
      • Semantic Reasoning
      • Questions to SQL Queries
      • Asked & Answered in Natural Language
      • Multiple Data Sources
      • Proactive AI Governance
    • vid-icon

      Ensure GenAI compliance and governance

      Read the Whitepapericon
  • Success Stories
    • By Use Case
      • Procurement
      • Operations
      • Budget Management
      • Sales Operations
      • Service Providers
      • Utilities Management
      • Restaurant Management
    • By Industry
      • Logistics
      • Pharma
      • Education
      • Retail
      • Shipping
      • Energy
      • Hospitality
    • vid-icon

      Monkey See, AI Do - All about CUA

      Watch Webinaricon
  • Resources
    • Content Hub
      • Case Studies
      • Webinars
      • Q&As
      • Videos
      • Whitepapers & Brochures
      • Events
      • Glossary
      • Blog
      • FAQs
      • Technical Documentation
    • vid-icon

      Taking the AI leap from RAG to TAG

      Read the Blogicon
  • Company
    • Our Company
      • About
      • Customers
      • Management
      • Board Members
      • Investors
      • News
      • Press Releases
      • Careers
    • col2
      • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
      • Support & Services
      • Services
      • Support
    • vid-icon

      GigaSpaces, IBM & AWS make AI safer

      Read Howicon
  • Book a Demo
  • Products
    • Our Products
      • eRAG
        • GenAI Catalyst
        • Instant Data
        • Respond Proactively
        • Act Autonomously
      • Smart DIH
      • XAP
    • Solutions for
      • Pharma
      • Procurement
  • Solutions
    • Digital Innovation Over Legacy Systems
    • Integration Data Hub
    • API Scaling
    • Hybrid/Multi-cloud Integration
    • Customer 360
    • Retail
    • Financial Services
    • Insurance Companies
  • How it Works
    • eRAG Technology Overview
      • AI-Ready, IT-Friendly
      • Semantic Reasoning
      • Questions to SQL Queries
      • Asked & Answered in Natural Language
      • Multiple Data Sources
      • Governance
  • Success Stories
    • By Use Case
      • Procurement
      • Operations
      • Budget Management
      • Sales Operations
      • Service Providers
      • Utilities Management
      • Restaurant Management
    • By Industry
      • Logistics
      • Pharma
      • Education
      • Retail
      • Shipping
      • Energy
      • Hospitality
  • Resources
    • Webinars
    • Videos
    • Q&As
    • Whitepapers & Brochures
    • Customer Case Studies
    • Events
    • Glossary
    • FAQs
    • Blog
    • Technical Documentation
  • Company
    • About
    • Customers
    • Management
    • Board Members
    • Investors
    • News
    • Press Releases
    • Careers
    • Partners
      • OEM Partners
      • System Integrators
      • Technology Partners
      • Value Added Resellers
    • Support & Services
      • Services
      • Support
  • Pricing
  • Book a Demo

In Memory Computing and its Key Role in Microservices Architecture

225

Subscribe for Updates
Close
Back

BLOG

In Memory Computing and its Key Role in Microservices Architecture

Danna Bethlehem Coronel
March 17, 2021 /
7min. read

Many applications today require the support of transactions at scale that must be calculated in real-time. These needs are most commonly seen in commercial transaction processing systems (OLTP) and some types of decision support systems such as fraud detection, risk analysis, predictive maintenance, and customer 360 applications. Typically these applications are integrated into a microservices environment to achieve distributed workflows, high availability, service isolation and more. 

Optimizing the latency in a microservice workflow is the main objective of online systems.

How In-Memory Computing Handles Main Latency Contributors in a Microservices Environment

Network and disk access are the two main factors contributing to high latency in an online-application microservices workflow. In the past, disk access was an order of magnitude slower than local network access, but today SSD and high speed PCI sockets have closed the gaps and deliver millions of IOPS. 

However, SSD technology still uses block devices that are slow compared to RAM, especially for small size data access patterns. In-Memory Computing that leverages in-memory data grids (IMDG) reduces the application latency to a minimum in microservices environments by storing relevant data for each microservice in its private and consistent distributed memory. Not only does this vastly decrease disk access latency, but it also reduces the need to access a remote data store when the grid is embedded within the microservice.

Low latency microservices solutions can be implemented in many ways, but choosing the correct architecture will impact user experience and application accuracy.

An example of low latency application is an algo trading workflow where the slightest delay in any object within the flow has a huge impact on the profit margin. It’s important to note that an IMDG is not the ideal pattern for historical data flows which are usually executed on archived big data and have different access patterns that are offline-oriented. 

Time-sensitive application requirements are driving the growing trend of deploying in-memory technology in any environment. When specifically implementing microservices, adopting IMDG as a service datastore delivers additional advantages that make the service lifecycle management easier and safer.

Data Isolation

One such benefit is data isolation. Data isolation in a microservice architecture refers to the concept that data layers must be stored privately on every microservice. However, managing a persistent microservice layer is not that simple. Tasks like attaching volumes, purging, copying, backing up are sometimes considered a huge overhead to be managed by a simple microservice.  It is therefore common to see microservices that use a centralized data store where the data is logically segregated instead. IMDG technology facilitates the data management process.  The relevant data is simply copied to the microservice space and all the transformations are executed within the service. 

Moving data from the enterprise’s systems of record to the independent microservices is easily accomplished by technologies like Change Data Capture (CDC) that were created to support the transition from monolith to microservices. An IMDG architecture then handles all the data management overhead including high availability, backups and scaling. 

Collocated data and services in a microservices cluster

Dynamic Scaling with No Down-Time While Maintaining Consistency

Scaling out capabilities is a necessity for many applications, especially for those that need to handle planned and unplanned peaks. A microservice is usually built out of many instances (replicas or partitions) to meet changing traffic rates without dependency on a single physical machine. It is common to see microservices that grow and shrink on demand as a result of changing transaction rates.

Nevertheless, scaling is a complex task for two reasons:

  1. The scaling operation must be performed in a way that will not damage the service, e.g. overload the service. 
  2. The scaling operation must maintain business logic consistency. For example, a transaction must not be performed twice due to a scaling scenario. 

Therefore scaling must be achieved seamlessly and as quickly as possible. IMDG technology has a huge advantage over other storage technologies when it comes to scaling. The millisecond memory access allows the completion of scale-out events in a matter of seconds. 

Real-Time Streaming Analysis Combining Analytics and Transactions

IMDG technology can also be used as a workload balancing system in a microservice environment. In a PubSub architecture one microservice streams data to a grid that may be shared among several application instances on another service. When the IMDG is embedded within the application, the IMDG partitioning schema is used not only to distribute the data among the grid instances but also to distribute the workload. 

Each application instance is responsible for one or more partitions on the grid and holds the state for that partition. The business logic is triggered automatically as soon as the data is changed per partitioned instance. Scaling out the workload is easy. By adding a new application instance to the cluster, IMDG partitions will be automatically reassigned to the new instance and the workload will be scaled.

This architecture decouples the producer partition schema from the application schema and also has real-time characteristics as in-memory triggers can be set to process events as soon as they are streamed to the grid. 

Example of streaming PubSub architecture

One such example is a fraud detection system that requires real-time actions in order to classify a suspicious transaction. Inference models are loaded into the grid and are matched against online transactions while transactions are streamed to the relevant model-partition.

Summary

Companies are gradually moving from monoliths having a centralized data store to a microservices architecture in which every service is responsible for a small amount of business logic independently. This modular approach breaks down a large system into small, autonomous and manageable components. Moving the relevant data closer to the application’s business logic greatly reduces the time it takes to perform critical online tasks. It ensures data isolation and decouples business logic from the main data schema. Scaling out the work on a subset of the data becomes easier and more effective than coordinating the work on a centralized data store.

See how Avanza, Sweden’s only digital bank that has the most satisfied savings customers for 10 years in a row, has rapidly deployed over a thousand services using a microservices-based architecture with Smart ODS.

Tags:

Danna Bethlehem Coronel

Director of Product Marketing

With more than 10 years’ experience in product leadership roles, Danna Bethlehem currently leads product marketing for GigaSpaces, focusing on GTM for the company's data platform and data hub solutions. Prior to joining GigaSpaces, Danna headed product marketing for authentication and access management solutions in Thales where she contributed to the evolution of the company’s IAM solutions, from MFA, through cloud-based authentication and access management-as-a-service. Over the years, Danna has held product leadership positions in several Israeli startups ranging from financial services to cyber-security.

All Posts (17)

Share this Article

Subscribe to Our Blog



PRODUCTS & SOLUTIONS

  • Products
    • eRAG
    • Smart DIH
    • XAP
  • Our Technology
    • Semantic Reasoning
    • Natural language to SQL
    • RAG for Structured Data
    • In-Memory Data Grid
    • Data Integration
    • Data Operations by Multiple Access Methods
    • Unified Data Model
    • Event-Driven Architecture

RESOURCES

  • Resource Hub
  • Webinars
  • Q&As
  • Blogs
  • FAQs
  • Videos
  • Whitepapers & Brochures
  • Customer Case Studies
  • Events
  • Use Cases
  • Analyst Reports
  • Technical Documentation

COMPANY

  • About
  • Customers
  • Management
  • Board Members
  • Investors
  • News
  • Careers
  • Contact Us
  • Book A Demo
  • Partners
  • OEM Partners
  • System Integrators
  • Value Added Resellers
  • Technology Partners
  • Support & Services
  • Services
  • Support
Copyright © GigaSpaces 2026 All rights reserved | Privacy Policy | Terms of Use
LinkedInXFacebookYouTube
Skip to content
Open toolbar Accessibility Tools

Accessibility Tools

  • Increase TextIncrease Text
  • Decrease TextDecrease Text
  • GrayscaleGrayscale
  • High ContrastHigh Contrast
  • Negative ContrastNegative Contrast
  • Light BackgroundLight Background
  • Links UnderlineLinks Underline
  • Readable FontReadable Font
  • Reset Reset
  • SitemapSitemap

Hey
tell us what
you need

You can unsubscribe from these communications at any time. For more information on how to unsubscribe, our privacy practices, and how we are committed to protecting and respecting your privacy, please review our Privacy Policy.

Hey , tell us what you need

You can unsubscribe from these communications at any time. For more information on how to unsubscribe, our privacy practices, and how we are committed to protecting and respecting your privacy, please review our Privacy Policy.

Oops! Something went wrong, please check email address (work email only).
Thank you!
We will get back to You shortly.