DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Fine-Tuning Performance, Resolving Common Issues in FinTech Application With MySQL
  • Schema Change Management Tools: A Practical Overview
  • Providing Enum Consistency Between Application and Data
  • How to Build a Full-Stack App With Next.js, Prisma, Postgres, and Fastify

Trending

  • Is the Data Warehouse Dead? 3 Patterns From Enterprise Architecture That Answer This Question
  • How to Interpret the Number of Spring ApplicationContexts in Integration Tests
  • 11 Agentic Testing Tools to Know in 2026
  • Engineering Closed-Loop Graph-RAG Systems, Part 3: Closing the Loop in Graph-RAG Systems
  1. DZone
  2. Data Engineering
  3. Databases
  4. How to Optimize Chatty Applications

How to Optimize Chatty Applications

Sometimes, claims call the same service for the same information over and over again. This behavior is called chattiness. Caching can help us optimize this chattiness.

By 
Abhilash Juluri user avatar
Abhilash Juluri
·
Feb. 02, 17 · Opinion
Likes (4)
Comment
Save
Tweet
Share
6.2K Views

Join the DZone community and get the full member experience.

Join For Free

You may have seen chatty applications numerous times in your career. Any app that acts as a core component in the distributed architecture has no option but to rely on other services to fulfill a request or a process. These core apps can get chatty in the early stages of their lifecycle.

Chattiness can look like this:

Image title

What is wrong with chatty apps? Calling other services to fulfill a request is all part of the plan, isn’t it?

Let’s examine chattiness characteristics with claims processing system. Before I go further, let me summarize how a healthcare claims process orchestration is (10,000-foot view).

Claims Processing Overview

Image title

Each stage above requires the claim system to make calls to other services like database, eligibility service, provider service, pricing service, business rules services, etc. Did I forget to mention fraud detection service? Oh, no!

In each stage, claims might make repeated calls to the same services based on the claim received.

Sometimes, it calls the same service for the same information over and over again! This is the behavior I’m calling chattiness. Now, what’s wrong with this behavior? One can argue that it’s a necessity to call other services and that we shouldn’t call it chattiness.

Service calls in a distributed architecture can incur many overheads including network latency, disk reads, database queries, etc. on both the caller and callee side.

How Can We Optimize This Chattiness?

Drum roll...

Caching! Yes, Caching is one sure way to solve this problem.

Caching solutions take many shapes depending on your architecture:

  • In-memory caching (i.e., Ehcache, Redis, Hazelcast).

  • Distributed caching (i.e., Oracle Coherence, Memcached)

  • Caching at API gateways or the ESB level.

Note that all the above caching solutions require robust cache refresh and replication strategies.

You may have been in environments where systems have large relational database schemas with hundreds of tables. With such large schemas, data retrieval queries get really expensive over a period of time, and the queries often require several joins, inner queries, hints, etc.

It’s a great idea to introduce a NoSQL database in between application and relational databases and stage the result sets of such complex queries, so that they will offload some load from the relational database. It’s safe to assume that this will result in a huge performance gain when you apply this solution for tables that won’t change frequently.

Conclusion

Chattiness of applications may not always be avoidable, but it can be optimized using caching and/or a NoSQL database.

References

  • https://www.dynatrace.com/blog/understanding-application-performance-on-the-network-chattiness-application-windowing/ 

  • https://zato.io/docs/intro/esb-soa.html

application Database Relational database Cache (computing)

Opinions expressed by DZone contributors are their own.

Related

  • Fine-Tuning Performance, Resolving Common Issues in FinTech Application With MySQL
  • Schema Change Management Tools: A Practical Overview
  • Providing Enum Consistency Between Application and Data
  • How to Build a Full-Stack App With Next.js, Prisma, Postgres, and Fastify

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook