# Real-time state has a cost your memory bill won't show

DevFeed: [Real-time state has a cost your memory bill won't show](<https://devfeed.tech/articles/real-time-state-has-a-cost-your-memory-bill-won-t-show-123756.md>)

Original publisher: [Read original article](<https://thenewstack.io/duplicated-streaming-state-costs/>)

Author: Granville Barnett

Published: 2026-11-09T14:29:57Z

Content type: article

Language: en

Sources: [The New Stack](<https://devfeed.tech/sources/the-new-stack.md>)

Topics: [Event-Streaming](<https://devfeed.tech/topics/event-streaming.md>), [streaming data analytics](<https://devfeed.tech/topics/streaming-data-analytics.md>), [cloud cost management](<https://devfeed.tech/topics/cloud-cost-management.md>)

Tags: [17](<https://devfeed.tech/tags/17.md>), [2](<https://devfeed.tech/tags/2.md>), [applications](<https://devfeed.tech/tags/applications.md>), [backend-development](<https://devfeed.tech/tags/backend-development.md>), [bill](<https://devfeed.tech/tags/bill.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data-streaming](<https://devfeed.tech/tags/data-streaming.md>), [databases](<https://devfeed.tech/tags/databases.md>), [events](<https://devfeed.tech/tags/events.md>), [first](<https://devfeed.tech/tags/first.md>), [flink](<https://devfeed.tech/tags/flink.md>), [handle](<https://devfeed.tech/tags/handle.md>), [hazelcast](<https://devfeed.tech/tags/hazelcast.md>), [kafka](<https://devfeed.tech/tags/kafka.md>), [memory](<https://devfeed.tech/tags/memory.md>), [post](<https://devfeed.tech/tags/post.md>), [process](<https://devfeed.tech/tags/process.md>), [real-time](<https://devfeed.tech/tags/real-time.md>), [roles](<https://devfeed.tech/tags/roles.md>), [setup](<https://devfeed.tech/tags/setup.md>), [show](<https://devfeed.tech/tags/show.md>), [sponsor-hazelcast](<https://devfeed.tech/tags/sponsor-hazelcast.md>), [sponsored](<https://devfeed.tech/tags/sponsored.md>), [sponsored-post](<https://devfeed.tech/tags/sponsored-post.md>), [state](<https://devfeed.tech/tags/state.md>), [time](<https://devfeed.tech/tags/time.md>), [tools](<https://devfeed.tech/tags/tools.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

Separating stream processing from serving can add CPU, network, synchronization, and infrastructure costs when systems maintain overlapping state. In the example, Flink keeps keyed state for a five-minute payment velocity count, while Redis serves the count to applications; updates must be serialized and published, creating export lag. Replica lag is a separate source of stale reads, and neither issue alone explains a check-then-act race that could duplicate a refund. Hazelcast offers entry processors to update map entries where they are stored, or Jet for windowed calculations that can publish results to a distributed map. These approaches can reduce cross-system movement, but backups, member traffic, serialization, late or duplicate events, and consistency requirements remain relevant. Separate platforms may still suit workloads needing independent scaling, isolation, or specialized processing. The excerpt recommends profiling CPU and network use, duplicated state, tail and end-to-end latency, and testing recovery and correctness under failures using comparable workloads and durability targets. Its cited cost and latency studies are not direct Hazelcast-versus-Flink/Redis savings

## Source excerpt

Real-time applications often combine tools with distinct roles. A typical setup might use Kafka to handle events, Flink to process The post Real-time state has a cost your memory bill won't show appeared first on The New Stack.