Real-time vs Batch Integration

When to use real-time integration and when batch processing is the better choice. A practical guide to choosing the right integration approach.

Defining the Terms

Real-time Integration

Data moves between systems immediately (or within seconds) of an event occurring. When a customer places an order on your website, your warehouse system knows about it within moments.

True real-time typically uses webhooks or event streaming - the source system pushes data as events happen rather than waiting to be asked.

Near Real-time

Data syncs frequently - every few minutes - but not instantaneously. Often implemented by polling (checking for changes on a schedule) rather than push-based events.

Batch Processing

Data accumulates and moves in scheduled batches - hourly, nightly, or weekly. All changes since the last batch are processed together.

When Real-time Makes Sense

Real-time Is Justified When

  • Users expect immediate feedback: Customer-facing systems where delays are visible and frustrating
  • Data has a short shelf life: Stock levels, pricing changes, availability status
  • Downstream processes depend on it: Warehouse pick operations waiting for orders
  • Regulatory or contractual requirements: Some industries require immediate reporting
  • Competitive advantage: Faster response than competitors matters

Real-time Examples

E-commerce inventory: When stock is low, real-time sync prevents overselling. A customer shouldn't be able to buy the last unit while another customer's order is in a batch queue.

Fraud detection: Checking transactions against fraud rules must happen before the transaction completes - batching is too late.

Customer support context: When a customer calls, the agent needs to see their recent orders immediately, not from last night's batch.

When Batch Is Better

Batch Processing Works Well When

  • Data doesn't change value with time: Historical records, analytics, reporting
  • Processing is resource-intensive: Complex transformations, aggregations, validations
  • Systems aren't always available: Legacy systems with maintenance windows
  • Errors need human review: Data quality issues require investigation before committing
  • Cost is a constraint: Batch is usually cheaper than real-time infrastructure

Batch Examples

Payroll processing: Salary calculations need complete data. Processing in real-time would mean incomplete calculations as timesheet entries arrive throughout the period.

Data warehouse loading: Analytics queries run on yesterday's complete data, not constantly changing current data.

Month-end reporting: Financial close processes need all transactions finalised before processing - real-time would create moving targets.

Comparison

Factor Real-time Batch
Data freshness Seconds/minutes Hours/days
Complexity Higher - event handling, error recovery Lower - straightforward ETL
Infrastructure cost Higher - always-on, scalable Lower - runs periodically
Error handling Must handle immediately Can review before retry
System coupling Tighter (with sync calls) Looser (files/staging)
Testing difficulty Higher - timing/sequencing issues Lower - deterministic

Hybrid Approaches

Most real-world integrations use a mix. You might process orders in real-time but sync product catalog changes in nightly batches. Some patterns that combine approaches:

Event-Triggered Batches

A real-time event starts a batch process. An "end of day" event triggers nightly processing. A "file received" event starts a batch import.

Micro-batching

Very frequent small batches - every 5 minutes - provide near real-time freshness with batch-style processing. Simpler than full event streaming, fresher than traditional batches.

Real-time for Critical, Batch for Rest

Prioritise real-time for the 20% of data that matters most. Order status updates might be real-time while customer preference changes sync overnight.

Making the Decision

Ask the Right Questions

  1. What breaks if data is 1 hour old? 1 day old? If nothing critical breaks, batch might be fine.
  2. Who is impacted by delays? Customers notice more than back-office staff.
  3. What's the cost of complexity? Real-time requires more sophisticated error handling, monitoring, and recovery.
  4. What are the source system's capabilities? Can it push events, or only respond to polling?
  5. What's the data volume pattern? Steady flow suits real-time. Spikes might overwhelm it.

Principle: Start with batch unless there's a clear business reason for real-time. It's easier to add real-time capabilities later than to simplify an overly complex real-time architecture.

Summary

Real-time integration sounds impressive, but batch processing often provides the best balance of simplicity, cost, and reliability. The right choice depends on your specific requirements - how fresh data needs to be, what systems can support, and what complexity your team can manage.

Don't default to real-time because it seems modern. Default to the simplest approach that meets your actual requirements.

Key takeaways

  • Real-time integration is essential when users or systems need immediate data.
  • Batch processing is better for large data volumes, cost efficiency, and reporting.
  • Most businesses need a hybrid approach: real-time for critical flows, batch for bulk.
  • Start with the user impact: who needs what data, and how quickly?
Kasun Wijayamanna
Kasun Wijayamanna Founder & Lead Developer

Postgraduate Researcher (AI & RAG), Curtin University - Western Australia

View profile →

Meet the person

Written by the person who does the work

This article comes from real projects. If it raises a question about your own system, you can ask the founder directly.

HELLO PEOPLE designs, builds and looks after AI, software, app and data solutions for Australian businesses, with senior expertise on every project and a scope agreed before work starts. For an integration, that means every record lands where it should and both systems agree.

Since 2007, HELLO PEOPLE has delivered more than 100 projects from Perth for small and medium businesses across Australia: custom software and apps, system integrations, data migrations, reporting and dashboards, and AI that works inside the systems a business already runs.

I lead every engagement myself. I trained in accounting before moving into IT, hold accounting and IT professional qualifications and an MBA, and bring more than 20 years of experience across sales, service delivery, inventory and compliance. I am also a PhD candidate in AI at Curtin University, researching retrieval-augmented generation (RAG), so the technology is always judged by what it does for the business.

  • An old-fashioned service

    Small and boutique. The person who scopes your integration is the person who builds it, and the same person watches the first live syncs.

  • Quick responses

    No ticket queue and no account manager in between. You hear back within one business day, usually sooner.

  • A long-term partner

    The integration is the start, not the end. When you need the next system, integration or report, you call the same person, who already knows your business.

Ask the author

Still have a question?

Ask it here and it comes straight to the founder. No sales call, no obligation, and a real answer even if the answer is that you do not need us.

Kasun Wijayamanna, Founder Kasun Wijayamanna
Founder, replies within one business day

Ready to discuss your project?

Tell us what you're working on. We'll come back with a practical recommendation and clear next steps.

Australian owned and operated

Built here. Your data stays here.

  • No offshore development. Everything is written by our own team in Australia. Nothing is subcontracted overseas.
  • Your data stays onshore. Hosted in Australia, on infrastructure you own, under Australian law.
  • Every state, not just ours. Perth, Melbourne, Sydney, Brisbane, Adelaide and everywhere between.