Index Ai Academy
Glossary · Phase 8 · APIs

Heartbeat

A small message sent on a schedule over a stream so that both sides know the connection is still alive.

Try it now

The reply takes the same time to finish. Streaming shows the first word at 400 ms; not streaming shows nothing until the end.

Learn it properly

Streaming from the server · Server-sent events written by a server: an ASGI app that sends a body in pieces, FastAPI's StreamingResponse, heartbeats, and what a closed connection looks like. About 40 minutes.

Keep learning

More in plain English.

1286 terms in the glossary, each with the lesson that teaches it.

1286 terms

The glossary

Every word you'll meet in AI and machine learning, explained in everyday language.

Phase 8 · lesson 40 min

Streaming from the server

Server-sent events written by a server: an ASGI app that sends a body in pieces, FastAPI's StreamingResponse, heartbeats, and what a closed connection looks like.

Never trained an AI? Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account. Teach it to write