PROTOCOLS · SSE
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.


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.
From connect to the last event, in one Gatling test
Each connect and each event check appears side by side in the same Gatling report.
How Gatling does it
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.
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.
Resume where the stream left off
Automatic reconnects resume from Last-Event-ID, and the check buffer is kept across reconnects.
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.
Streamed model responses
Chat completions streamed until the final event. Measure response times and failed streams as concurrent users grow.
Prices every second
Crypto and stock price feeds pushed to dashboards, tickers and trading apps. Measure publish-to-receipt latency as clients grow.
Scores to every fan
Match events streamed to every open app at kickoff. Measure whether every client gets each update in time.
Operations and logistics feeds
Activity, shipment and monitoring streams that stay open all day. Measure connection stability over hours, not minutes.
Updates to every open session
A broadcast pushed to every connected client. Measure how long the last client waits and which connections drop.
A different architecture?
Tell us about the streams that matter to your business. We’ll help you design the right Gatling test.
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.
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.
Private Locations
Run next to streaming services that aren’t reachable from the internet, with no inbound access to open.
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.
Live Session
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.
.png)
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.
Load test SSE with JavaScript
Thousands of clients on a live crypto price feed, tested with the Gatling JavaScript SDK.
Load test an LLM API with SSE
Stream chat completions from the OpenAI API with a Java simulation, then read the Gatling report.
SSE reference
Connect, await and check, matching, buffers, reconnects and close.
One platform for every protocol you run
Same Gatling SDK, same reports, same infrastructure.
gRPC
Unary and streaming calls built from your .proto files.
SSE
Server-Sent Events streams.
MQTT
IoT devices and brokers at fleet scale.
Kafka
Event-driven flows, end to end.
WebSocket
Real-time connections and messages.
Also supported: HTTP, GraphQL, JDBC and JMS. See the full tech stack›
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.
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?
Running SSE tests locally first?

