Load test your streams with every client listening

Live prices, scores, dashboards and LLM responses stream to clients over Server-Sent Events, on connections that stay open for minutes or hours. Gatling holds those streams at production concurrency and checks events as they arrive, so you see late updates and dropped connections before your users do.

01 · WHAT GATLING MEASURES

Measure the events your users wait for, not the first response

An HTTP test sees a fast response and a connection that stays open. The real question is what comes next: does every event arrive, in time, for every client, as the client count grows? Gatling waits for the events you expect and checks them, per virtual user, under load.

ONE STREAM, UNDER LOAD

From connect to the last event, in one Gatling test

ConnectGET or POST
Stream opensconnection held open
Server publishesprices, tokens, updates
Events arriveone by one, or late
Event checkedmatched and validated
Stream opensWhere most tests stop
Connect to last event checkedWhat Gatling measures

Each connect and each event check appears side by side in the same Gatling report.

How Gatling does it

CHECKS

Wait for the event you expect

Await events with a timeout and check any field with JSON path or JMESPath, since every event is converted to JSON. An event that never arrives fails the test.

MATCHING

The right event in a busy stream

Filter which events a check considers, apply checks only when a condition holds, and process events no check matched.

RECONNECTS

Resume where the stream left off

Automatic reconnects resume from Last-Event-ID, and the check buffer is kept across reconnects.

02 · USE CASES

Where teams load test SSE

SSE carries the updates your users watch live. These are the streams to test before a launch, a market open or a peak.

LLM APIS

Streamed model responses

Chat completions streamed until the final event. Measure response times and failed streams as concurrent users grow.

MARKET DATA

Prices every second

Crypto and stock price feeds pushed to dashboards, tickers and trading apps. Measure publish-to-receipt latency as clients grow.

LIVE SPORTS

Scores to every fan

Match events streamed to every open app at kickoff. Measure whether every client gets each update in time.

DASHBOARDS

Operations and logistics feeds

Activity, shipment and monitoring streams that stay open all day. Measure connection stability over hours, not minutes.

NOTIFICATIONS

Updates to every open session

A broadcast pushed to every connected client. Measure how long the last client waits and which connections drop.

YOUR STREAM

A different architecture?

Tell us about the streams that matter to your business. We’ll help you design the right Gatling test.

03 · WHY GATLING

SSE testing built into Gatling

Connect, check, match, buffer, reconnect and close ship with the Gatling HTTP SDK. No plugin to install, no custom client to maintain.

0
plugins to install: SSE ships with the HTTP SDK
2
ways to open a stream: GET or POST
1
scenario that mixes HTTP calls and SSE streams
5
languages: Java, Kotlin, Scala, JavaScript, TypeScript
LLM READY

Streaming AI responses

Send a prompt with POST, read the streamed answer until the final event, and close. Our guide runs it against the OpenAI chat completions API.

INFRASTRUCTURE

Private Locations

Run next to streaming services that aren’t reachable from the internet, with no inbound access to open.

CI/CD

Performance gates with assertions

Set assertions on response time and failed checks per stream. If one fails, the Gatling test fails and so does the build.

See Gatling in action

Build, run, and interpret your first load test. A practical session: by the end, you'll know exactly what Enterprise gives you out of the box.

Loading next session...

30 minutes

Live + Q&A

04 · GET STARTED

Your first Gatling test for SSE

A step-by-step guide, a hands-on article and the reference docs from our engineers. Pick the one that fits your stack.

Community Edition: SSE support is included, with no protocol limit.Gatling Enterprise: distributed load generators, run history and shared reports.
05 · OTHER PROTOCOLS

One platform for every protocol you run

Same Gatling SDK, same reports, same infrastructure.

Also supported: HTTP, GraphQL, JDBC and JMS. See the full tech stack›

FAQ

SSE load testing, answered

What teams ask before they run their first SSE test with Gatling.

Is SSE support included in Gatling Community Edition?

Yes. SSE support is part of the Gatling HTTP SDK, with no separate plugin. Gatling Enterprise adds distributed load generators, run history and shared reports.

Can I load test LLM APIs that stream responses?

Yes. Open the stream with a POST that carries your prompt, read events until the final one, and close. Our guide does this against the OpenAI chat completions API.

How do I check events in a busy stream?

Events are converted to JSON, so you check any field with JSON path or JMESPath. Matching filters which events a check considers, and unmatched events can be buffered and processed.

What happens when a stream disconnects?

Gatling reconnects automatically and resumes from Last-Event-ID. The check buffer is kept across reconnects.

Can a virtual user hold several streams?

Yes. Give each stream its own name, and every action targets the stream you choose.

Which Gatling versions and languages are supported?

SSE support ships with the Gatling HTTP SDK in Java, Kotlin, Scala, JavaScript and TypeScript.

SSE LOAD TESTING WITH GATLING ENTERPRISE

Find out how many listeners your streams can hold

Bring one stream that matters to your business. We’ll write the test with you and run it against your service in a Gatling Enterprise trial.

Find out where your streams break

Bring one stream that matters to your business. We'll show you how to test it at production scale with Gatling Enterprise.

Need technical references and tutorials?