Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
69 lines (69 loc) · 56.7 KB
/
Copy pathindex.html
File metadata and controls
69 lines (69 loc) · 56.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html><html lang="en" dir="ltr" data-theme="dark" data-has-sidebar data-has-hero class="astro-g5ptsecz"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><title>Stream Processing</title><link rel="canonical" href="https://stream-processing-systems.github.io/"/><link rel="sitemap" href="/sitemap-index.xml"/><link rel="apple-touch-icon" href="/apple-touch-icon.png"/><link rel="icon" href="/favicon.ico" sizes="32x32"/><link rel="manifest" href="/manifest.webmanifest"/><script src="/article-widgets.js" defer></script><script src="/course-progress.js" defer></script><script src="/course-quiz.js" type="module"></script><script src="/sidebar-state.js" defer></script><script async src="https://www.googletagmanager.com/gtag/js?id=G-C0KBX4XM6J"></script><script>window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}gtag('js',new Date());gtag('config','G-C0KBX4XM6J');</script><link rel="shortcut icon" href="/favicon-32.png" type="image/png"/><meta name="generator" content="Astro v7.3.5"/><meta name="generator" content="Starlight v0.42.5"/><meta property="og:title" content="Stream Processing"/><meta property="og:type" content="article"/><meta property="og:url" content="https://stream-processing-systems.github.io/"/><meta property="og:locale" content="en"/><meta property="og:description" content="An open course on how stream processing systems are organized and how they work."/><meta property="og:site_name" content="Stream Processing"/><meta name="twitter:card" content="summary_large_image"/><meta name="description" content="An open course on how stream processing systems are organized and how they work."/><meta name="course-base" content="/"/><meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)"/><meta name="theme-color" content="#2b2b30" media="(prefers-color-scheme: dark)"/><meta property="og:image" content="https://stream-processing-systems.github.io/og-image-en.png"/><meta property="og:image:width" content="1200"/><meta property="og:image:height" content="630"/><meta name="twitter:image" content="https://stream-processing-systems.github.io/og-image-en.png"/><script>
window.StarlightThemeProvider = (() => {
const storedTheme =
typeof localStorage !== 'undefined' && localStorage.getItem('starlight-theme');
const theme =
storedTheme ||
(window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark');
document.documentElement.dataset.theme = theme === 'light' ? 'light' : 'dark';
return {
updatePickers(theme = storedTheme || 'auto') {
document.querySelectorAll('starlight-theme-select').forEach((picker) => {
const select = picker.querySelector('select');
if (select) select.value = theme;
/** @type {HTMLTemplateElement | null} */
const tmpl = document.querySelector(`#theme-icons`);
const newIcon = tmpl && tmpl.content.querySelector('.' + theme);
if (newIcon) {
const oldIcon = picker.querySelector('svg.label-icon');
if (oldIcon) {
oldIcon.replaceChildren(...newIcon.cloneNode(true).childNodes);
}
}
});
},
};
})();
</script><template id="theme-icons"><svg aria-hidden="true" class="light astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M5 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h1a1 1 0 0 0 1-1Zm.64 5-.71.71a1 1 0 0 0 0 1.41 1 1 0 0 0 1.41 0l.71-.71A1 1 0 0 0 5.64 17ZM12 5a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1Zm5.66 2.34a1 1 0 0 0 .7-.29l.71-.71a1 1 0 1 0-1.41-1.41l-.66.71a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.29Zm-12-.29a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.71-.71a1.004 1.004 0 1 0-1.43 1.41l.73.71ZM21 11h-1a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2Zm-2.64 6A1 1 0 0 0 17 18.36l.71.71a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.76-.66ZM12 6.5a5.5 5.5 0 1 0 5.5 5.5A5.51 5.51 0 0 0 12 6.5Zm0 9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm0 3.5a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1a1 1 0 0 0-1-1Z"/></svg><svg aria-hidden="true" class="dark astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21.64 13a1 1 0 0 0-1.05-.14 8.049 8.049 0 0 1-3.37.73 8.15 8.15 0 0 1-8.14-8.1 8.59 8.59 0 0 1 .25-2A1 1 0 0 0 8 2.36a10.14 10.14 0 1 0 14 11.69 1 1 0 0 0-.36-1.05Zm-9.5 6.69A8.14 8.14 0 0 1 7.08 5.22v.27a10.15 10.15 0 0 0 10.14 10.14 9.784 9.784 0 0 0 2.1-.22 8.11 8.11 0 0 1-7.18 4.32v-.04Z"/></svg><svg aria-hidden="true" class="auto astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21 14h-1V7a3 3 0 0 0-3-3H7a3 3 0 0 0-3 3v7H3a1 1 0 0 0-1 1v2a3 3 0 0 0 3 3h14a3 3 0 0 0 3-3v-2a1 1 0 0 0-1-1ZM6 7a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v7H6V7Zm14 10a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-1h16v1Z"/></svg></template><link rel="stylesheet" href="/_astro/print.ehPL0gv-.css" media="print"><link rel="stylesheet" href="/_astro/index.BG3-ptX6.css"><script type="module" src="/_astro/page.Dwipeu-R.js"></script></head><body class="astro-g5ptsecz"><a class="sl-skip-link astro-qb7clj6f" href="#_top">Skip to content</a><div class="page sl-flex astro-jvulkizc"><header class="header astro-jvulkizc"><div class="header astro-by6fddyj"><div class="title-wrapper sl-flex astro-by6fddyj"><a href="/" class="site-title sl-flex astro-6rvad3va"><img class="astro-6rvad3va" alt src="/_astro/logo.DKQKHWKq.png" width="192" height="192"><span class="astro-6rvad3va" translate="no">Stream Processing</span></a></div><div class="sl-flex print:hidden astro-by6fddyj"><site-search class="astro-223fx62r astro-b5kgnn7o" data-translations="{"placeholder":"Search","clear_search":"Clear","load_more":"Load more","search_label":"Search this site","filters_label":"Filters","zero_results":"No results for [SEARCH_TERM]","many_results":"[COUNT] results for [SEARCH_TERM]","one_result":"[COUNT] result for [SEARCH_TERM]","alt_search":"No results for [SEARCH_TERM]. Showing results for [DIFFERENT_TERM]","search_suggestion":"No results for [SEARCH_TERM]. Try another search:","searching":"Searching for [SEARCH_TERM]…"}"><button data-open-modal disabled aria-label="Search" aria-keyshortcuts="Control+K" class="astro-b5kgnn7o"><svg aria-hidden="true" class="astro-b5kgnn7o astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21.71 20.29 18 16.61A9 9 0 1 0 16.61 18l3.68 3.68a.999.999 0 0 0 1.42 0 1 1 0 0 0 0-1.39ZM11 18a7 7 0 1 1 0-14 7 7 0 0 1 0 14Z"/></svg><span class="sl-hidden md:sl-block astro-b5kgnn7o" aria-hidden="true">Search</span><kbd class="sl-hidden md:sl-flex astro-b5kgnn7o" style="display: none;"><kbd class="astro-b5kgnn7o">Ctrl</kbd><kbd class="astro-b5kgnn7o">K</kbd></kbd></button><dialog style="padding:0" aria-label="Search" class="astro-b5kgnn7o"><div class="dialog-frame sl-flex astro-b5kgnn7o"><button data-close-modal class="sl-flex md:sl-hidden astro-b5kgnn7o">Cancel</button><div class="search-container astro-b5kgnn7o"><div id="starlight__search" class="astro-b5kgnn7o"></div></div></div></dialog></site-search><script>
(() => {
const openBtn = document.querySelector('button[data-open-modal]');
const shortcut = openBtn?.querySelector('kbd');
if (!openBtn || !(shortcut instanceof HTMLElement)) return;
const platformKey = shortcut.querySelector('kbd');
if (platformKey && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)) {
platformKey.textContent = '⌘';
openBtn.setAttribute('aria-keyshortcuts', 'Meta+K');
}
shortcut.style.display = '';
})();
</script><script type="module" src="/_astro/Search.astro_astro_type_script_index_0_lang.Bumivpjo.js"></script><div class="course-search-start astro-223fx62r" hidden><p class="course-search-start-heading astro-223fx62r">Where to start</p><ul class="astro-223fx62r"><li class="astro-223fx62r"><a href="/introduction/why-stream-processing/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Introduction</span><span class="course-search-start-title astro-223fx62r">Why stream processing?</span></a></li><li class="astro-223fx62r"><a href="/fundamentals/what-does-an-event-tell-us/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Fundamentals</span><span class="course-search-start-title astro-223fx62r">What does an event tell us?</span></a></li><li class="astro-223fx62r"><a href="/time/event-time-and-processing-time/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Time and windows</span><span class="course-search-start-title astro-223fx62r">Event time and processing time</span></a></li><li class="astro-223fx62r"><a href="/reliability/when-an-event-arrives-twice-or-never/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Duplicates, loss, and recovery</span><span class="course-search-start-title astro-223fx62r">When an event arrives twice or never</span></a></li><li class="astro-223fx62r"><a href="/distribution/a-queue-or-a-log/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Distributed processing and the log</span><span class="course-search-start-title astro-223fx62r">A queue or a log?</span></a></li><li class="astro-223fx62r"><a href="/tables/from-changes-to-a-current-table/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Streams, tables, and joins</span><span class="course-search-start-title astro-223fx62r">From changes to a current table</span></a></li><li class="astro-223fx62r"><a href="/implementations/comparing-stream-processing-implementations/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Implementations and comparison</span><span class="course-search-start-title astro-223fx62r">Comparing stream processing implementations</span></a></li><li class="astro-223fx62r"><a href="/contracts/event-contracts/" class="astro-223fx62r"><span class="course-search-start-section astro-223fx62r">Event contracts and changes</span><span class="course-search-start-title astro-223fx62r">Event contracts</span></a></li></ul></div><script type="module">var e=document.querySelector(`.course-search-start`),t=document.querySelector(`site-search .search-container`);e&&t&&(t.append(e),e.hidden=!1);</script></div><div class="sl-hidden md:sl-flex print:hidden right-group astro-by6fddyj"><div class="sl-flex social-icons astro-by6fddyj"><a href="https://github.com/stream-processing-systems/stream-processing-systems.github.io" aria-label="Star us on GitHub" title="Star us on GitHub" class="sl-flex"><svg aria-hidden="true" class=" astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z"/></svg></a></div><course-theme-toggle class="astro-e52pfzt5"><button type="button" class="course-theme-toggle astro-e52pfzt5" aria-label="Toggle theme" title="Toggle theme"><svg aria-hidden="true" class="course-theme-icon course-theme-moon astro-e52pfzt5 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21.64 13a1 1 0 0 0-1.05-.14 8.049 8.049 0 0 1-3.37.73 8.15 8.15 0 0 1-8.14-8.1 8.59 8.59 0 0 1 .25-2A1 1 0 0 0 8 2.36a10.14 10.14 0 1 0 14 11.69 1 1 0 0 0-.36-1.05Zm-9.5 6.69A8.14 8.14 0 0 1 7.08 5.22v.27a10.15 10.15 0 0 0 10.14 10.14 9.784 9.784 0 0 0 2.1-.22 8.11 8.11 0 0 1-7.18 4.32v-.04Z"/></svg><svg aria-hidden="true" class="course-theme-icon course-theme-sun astro-e52pfzt5 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M5 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h1a1 1 0 0 0 1-1Zm.64 5-.71.71a1 1 0 0 0 0 1.41 1 1 0 0 0 1.41 0l.71-.71A1 1 0 0 0 5.64 17ZM12 5a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1Zm5.66 2.34a1 1 0 0 0 .7-.29l.71-.71a1 1 0 1 0-1.41-1.41l-.66.71a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.29Zm-12-.29a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.71-.71a1.004 1.004 0 1 0-1.43 1.41l.73.71ZM21 11h-1a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2Zm-2.64 6A1 1 0 0 0 17 18.36l.71.71a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.76-.66ZM12 6.5a5.5 5.5 0 1 0 5.5 5.5A5.51 5.51 0 0 0 12 6.5Zm0 9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm0 3.5a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1a1 1 0 0 0-1-1Z"/></svg></button></course-theme-toggle><script type="module">var e=`starlight-theme`,t=()=>matchMedia(`(prefers-color-scheme: light)`).matches?`light`:`dark`,n=class extends HTMLElement{constructor(){super(),this.querySelector(`button`)?.addEventListener(`click`,()=>{let t=document.documentElement.dataset.theme===`light`?`dark`:`light`;document.documentElement.dataset.theme=t;try{localStorage.setItem(e,t)}catch{}})}};customElements.define(`course-theme-toggle`,n),matchMedia(`(prefers-color-scheme: light)`).addEventListener(`change`,()=>{let n=null;try{n=localStorage.getItem(e)}catch{}n!==`light`&&n!==`dark`&&(document.documentElement.dataset.theme=t())});</script></div></div></header><nav class="sidebar print:hidden astro-jvulkizc" aria-label="Main"><button popovertarget="starlight__sidebar" class="sl-menu-button sl-flex lg:sl-hidden print:hidden astro-typaf3vk"><svg aria-hidden="true" class="open-menu astro-typaf3vk astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M3 8h18a1 1 0 1 0 0-2H3a1 1 0 0 0 0 2Zm18 8H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2Zm0-5H3a1 1 0 0 0 0 2h18a1 1 0 0 0 0-2Z"/></svg><svg aria-hidden="true" class="close-menu astro-typaf3vk astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="m13.41 12 6.3-6.29a1.004 1.004 0 1 0-1.42-1.42L12 10.59l-6.29-6.3a1.004 1.004 0 0 0-1.42 1.42l6.3 6.29-6.3 6.29a1 1 0 0 0 0 1.42.998.998 0 0 0 1.42 0l6.29-6.3 6.29 6.3a.999.999 0 0 0 1.42 0 1 1 0 0 0 0-1.42L13.41 12Z"/></svg><span class="sr-only astro-typaf3vk">Menu</span></button><script type="module">var e=class extends HTMLElement{constructor(){super();let e=matchMedia(`(min-width: 72em)`),t=()=>{this.popover=e.matches?null:`auto`};t(),e.addEventListener(`change`,()=>t()),this.addEventListener(`toggle`,({newState:e})=>this.trapFocus(e===`open`))}trapFocus(e){document.querySelectorAll(`.main-frame, .sl-skip-link`).forEach(t=>{t.toggleAttribute(`inert`,e)})}};customElements.define(`sl-sidebar-pane`,e);</script><sl-sidebar-pane popover id="starlight__sidebar" class="sidebar-pane astro-jvulkizc"><div class="sidebar-content sl-flex astro-jvulkizc"><div class="course-sidebar-brand astro-6vmd22lb"><a href="/" class="site-title sl-flex astro-6rvad3va"><img class="astro-6rvad3va" alt src="/_astro/logo.DKQKHWKq.png" width="192" height="192"><span class="astro-6rvad3va" translate="no">Stream Processing</span></a></div><sl-sidebar-state-persist data-hash="1cqld3m" class="astro-ipdry5cl"><script aria-hidden="true">
(() => {
try {
if (!matchMedia('(min-width: 50em)').matches) return;
/** @type {HTMLElement | null} */
const target = document.querySelector('sl-sidebar-state-persist');
const state = JSON.parse(sessionStorage.getItem('sl-sidebar-state') || '0');
if (!target || !state || target.dataset.hash !== state.hash) return;
window._starlightScrollRestore = state.scroll;
customElements.define(
'sl-sidebar-restore',
class SidebarRestore extends HTMLElement {
connectedCallback() {
try {
const idx = parseInt(this.dataset.index || '');
const details = this.closest('details');
if (details && typeof state.open[idx] === 'boolean') details.open = state.open[idx];
} catch {}
}
}
);
} catch {}
})();
</script><ul class="top-level astro-rmhv4bp6"><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Introduction</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="0"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/introduction/why-stream-processing/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Why stream processing?</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Fundamentals</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="1"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/fundamentals/what-does-an-event-tell-us/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">What does an event tell us?</span></a></li><li class="astro-rmhv4bp6"><a href="/fundamentals/from-events-to-results/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">From events to results</span></a></li><li class="astro-rmhv4bp6"><a href="/fundamentals/when-one-event-is-not-enough/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">When one event is not enough</span></a></li><li class="astro-rmhv4bp6"><a href="/fundamentals/grouping-events-by-key/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Grouping events by key</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Time and windows</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="2"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/time/event-time-and-processing-time/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Event time and processing time</span></a></li><li class="astro-rmhv4bp6"><a href="/time/putting-events-into-time-windows/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Putting events into time windows</span></a></li><li class="astro-rmhv4bp6"><a href="/time/sliding-and-session-windows/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Sliding and session windows</span></a></li><li class="astro-rmhv4bp6"><a href="/time/how-far-has-the-stream-progressed/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">How far has the stream progressed?</span></a></li><li class="astro-rmhv4bp6"><a href="/time/when-is-a-window-result-ready/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">When is a window result ready?</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Duplicates, loss, and recovery</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="3"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/reliability/when-an-event-arrives-twice-or-never/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">When an event arrives twice or never</span></a></li><li class="astro-rmhv4bp6"><a href="/reliability/what-must-survive-a-restart/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">What must survive a restart?</span></a></li><li class="astro-rmhv4bp6"><a href="/reliability/recovering-a-consistent-computation/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Recovering a consistent computation</span></a></li><li class="astro-rmhv4bp6"><a href="/reliability/one-result-one-external-effect/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">One result, one external effect?</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Distributed processing and the log</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="4"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/distribution/a-queue-or-a-log/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">A queue or a log?</span></a></li><li class="astro-rmhv4bp6"><a href="/distribution/splitting-a-log-into-partitions/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Splitting a log into partitions</span></a></li><li class="astro-rmhv4bp6"><a href="/distribution/topics-partitions-and-offsets-in-kafka/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Topics, partitions, and offsets in Kafka</span></a></li><li class="astro-rmhv4bp6"><a href="/distribution/consumer-groups-and-replay-in-kafka/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Consumer groups and replay in Kafka</span></a></li><li class="astro-rmhv4bp6"><a href="/distribution/how-long-does-kafka-keep-history/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">How long does Kafka keep history?</span></a></li><li class="astro-rmhv4bp6"><a href="/distribution/capturing-changes-from-a-database/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Capturing changes from a database</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Streams, tables, and joins</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="5"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/tables/from-changes-to-a-current-table/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">From changes to a current table</span></a></li><li class="astro-rmhv4bp6"><a href="/tables/joining-events-with-changing-reference-data/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Joining events with changing reference data</span></a></li><li class="astro-rmhv4bp6"><a href="/tables/joining-two-streams-in-time/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Joining two streams in time</span></a></li><li class="astro-rmhv4bp6"><a href="/tables/a-query-that-keeps-updating/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">A query that keeps updating</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Implementations and comparison</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="6"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/implementations/comparing-stream-processing-implementations/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Comparing stream processing implementations</span></a></li><li class="astro-rmhv4bp6"><a href="/implementations/running-totals-in-kafka-streams/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Running totals in Kafka Streams</span></a></li><li class="astro-rmhv4bp6"><a href="/implementations/running-totals-in-flink/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Running totals in Flink</span></a></li><li class="astro-rmhv4bp6"><a href="/implementations/running-totals-in-spark-structured-streaming/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Running totals in Spark Structured Streaming</span></a></li></ul></details></li><li class="astro-rmhv4bp6"><details open class="astro-rmhv4bp6"><summary class="astro-rmhv4bp6"><span class="group-label astro-rmhv4bp6"><span class="large astro-rmhv4bp6">Event contracts and changes</span></span><svg aria-hidden="true" class="caret astro-rmhv4bp6 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg></summary><sl-sidebar-restore data-index="7"></sl-sidebar-restore><ul class="astro-rmhv4bp6"><li class="astro-rmhv4bp6"><a href="/contracts/event-contracts/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Event contracts</span></a></li><li class="astro-rmhv4bp6"><a href="/contracts/schema-evolution-and-compatibility/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">Schema evolution and compatibility</span></a></li><li class="astro-rmhv4bp6"><a href="/contracts/when-a-record-cannot-be-processed/" class="astro-rmhv4bp6"><span class="astro-rmhv4bp6">When a record cannot be processed</span></a></li></ul></details></li></ul><script aria-hidden="true">
(() => {
const scroller = document.getElementById('starlight__sidebar');
if (!window._starlightScrollRestore || !scroller) return;
scroller.scrollTop = window._starlightScrollRestore;
delete window._starlightScrollRestore;
})();
</script></sl-sidebar-state-persist><div class="md:sl-hidden"><div class="mobile-preferences sl-flex astro-p4azlveh"><div class="social-icons astro-p4azlveh"><a href="https://github.com/stream-processing-systems/stream-processing-systems.github.io" aria-label="Star us on GitHub" title="Star us on GitHub" class="sl-flex"><svg aria-hidden="true" class=" astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M12 .3a12 12 0 0 0-3.8 23.38c.6.12.83-.26.83-.57L9 21.07c-3.34.72-4.04-1.61-4.04-1.61-.55-1.39-1.34-1.76-1.34-1.76-1.08-.74.09-.73.09-.73 1.2.09 1.83 1.24 1.83 1.24 1.08 1.83 2.81 1.3 3.5 1 .1-.78.42-1.31.76-1.61-2.67-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.14-.3-.54-1.52.1-3.18 0 0 1-.32 3.3 1.23a11.5 11.5 0 0 1 6 0c2.28-1.55 3.29-1.23 3.29-1.23.64 1.66.24 2.88.12 3.18a4.65 4.65 0 0 1 1.23 3.22c0 4.61-2.8 5.63-5.48 5.92.42.36.81 1.1.81 2.22l-.01 3.29c0 .31.2.69.82.57A12 12 0 0 0 12 .3Z"/></svg></a></div><course-theme-toggle class="astro-e52pfzt5"><button type="button" class="course-theme-toggle astro-e52pfzt5" aria-label="Toggle theme" title="Toggle theme"><svg aria-hidden="true" class="course-theme-icon course-theme-moon astro-e52pfzt5 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M21.64 13a1 1 0 0 0-1.05-.14 8.049 8.049 0 0 1-3.37.73 8.15 8.15 0 0 1-8.14-8.1 8.59 8.59 0 0 1 .25-2A1 1 0 0 0 8 2.36a10.14 10.14 0 1 0 14 11.69 1 1 0 0 0-.36-1.05Zm-9.5 6.69A8.14 8.14 0 0 1 7.08 5.22v.27a10.15 10.15 0 0 0 10.14 10.14 9.784 9.784 0 0 0 2.1-.22 8.11 8.11 0 0 1-7.18 4.32v-.04Z"/></svg><svg aria-hidden="true" class="course-theme-icon course-theme-sun astro-e52pfzt5 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1em;"><path d="M5 12a1 1 0 0 0-1-1H3a1 1 0 0 0 0 2h1a1 1 0 0 0 1-1Zm.64 5-.71.71a1 1 0 0 0 0 1.41 1 1 0 0 0 1.41 0l.71-.71A1 1 0 0 0 5.64 17ZM12 5a1 1 0 0 0 1-1V3a1 1 0 0 0-2 0v1a1 1 0 0 0 1 1Zm5.66 2.34a1 1 0 0 0 .7-.29l.71-.71a1 1 0 1 0-1.41-1.41l-.66.71a1 1 0 0 0 0 1.41 1 1 0 0 0 .66.29Zm-12-.29a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.71-.71a1.004 1.004 0 1 0-1.43 1.41l.73.71ZM21 11h-1a1 1 0 0 0 0 2h1a1 1 0 0 0 0-2Zm-2.64 6A1 1 0 0 0 17 18.36l.71.71a1 1 0 0 0 1.41 0 1 1 0 0 0 0-1.41l-.76-.66ZM12 6.5a5.5 5.5 0 1 0 5.5 5.5A5.51 5.51 0 0 0 12 6.5Zm0 9a3.5 3.5 0 1 1 0-7 3.5 3.5 0 0 1 0 7Zm0 3.5a1 1 0 0 0-1 1v1a1 1 0 0 0 2 0v-1a1 1 0 0 0-1-1Z"/></svg></button></course-theme-toggle></div></div></div></sl-sidebar-pane></nav><div class="main-frame astro-jvulkizc"><script type="module">var e=document.getElementById(`starlight__sidebar`),t=e?.querySelector(`sl-sidebar-state-persist`),n=`sl-sidebar-state`,r=()=>{let r=[],i=t?.dataset.hash||``;try{let e=sessionStorage.getItem(n),t=JSON.parse(e||`{}`);Array.isArray(t.open)&&t.hash===i&&(r=t.open)}catch{}return{hash:i,open:r,scroll:e?.scrollTop||0}},i=e=>{try{sessionStorage.setItem(n,JSON.stringify(e))}catch{}},a=()=>i(r()),o=(e,t)=>{let n=r();n.open[t]=e,i(n)};t?.addEventListener(`click`,e=>{if(!(e.target instanceof Element))return;let t=e.target.closest(`summary`)?.closest(`details`);if(!t)return;let n=t.querySelector(`sl-sidebar-restore`),r=parseInt(n?.dataset.index||``);isNaN(r)||o(!t.open,r)}),addEventListener(`visibilitychange`,()=>{document.visibilityState===`hidden`&&a()});</script><div class="md:sl-flex astro-z2restcr"><div class="main-pane astro-z2restcr"><main data-pagefind-body class="astro-g5ptsecz" lang="en" dir="ltr"><div class="content-panel astro-a7po4psb"><div class="sl-container astro-a7po4psb"><div class="course-hero astro-ex3va6c7"><h1 id="_top" data-page-title class="astro-ex3va6c7">Stream Processing</h1><p class="course-hero-tagline astro-ex3va6c7">An open course on how stream processing systems are organized and how they work.</p></div><section class="course-path astro-ex3va6c7" aria-labelledby="course-path-title"><div class="course-start astro-ex3va6c7" data-course-start><p class="course-intro astro-ex3va6c7">We'll explore when stream processing is useful and the role Kafka plays in it. Using examples, we'll see how to combine data from different sources, continuously update results with SQL, and recover from failures.</p><a class="sl-link-button not-content primary astro-ex3va6c7 astro-dcqstdaq" href="/introduction/why-stream-processing/">Start learning<svg aria-hidden="true" class="astro-dcqstdaq astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.5rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg></a></div><div class="course-total-progress astro-ex3va6c7" data-course-total hidden><div class="course-total-progress-heading astro-ex3va6c7"><span class="astro-ex3va6c7">Learning progress <span data-course-total-read class="astro-ex3va6c7">0</span> / 31</span><button type="button" class="course-progress-reset astro-ex3va6c7" data-course-progress-reset><svg aria-hidden="true" width="0.7rem" height="0.7rem" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="astro-ex3va6c7"><path d="M3 12a9 9 0 1 0 3-6.7L3 8" class="astro-ex3va6c7"></path><path d="M3 3v5h5" class="astro-ex3va6c7"></path></svg>Reset</button></div><div class="course-total-progress-bar astro-ex3va6c7" data-course-total-progress role="progressbar" aria-label="Learning progress" aria-valuemin="0" aria-valuemax="31" aria-valuenow="0"><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/introduction/why-stream-processing/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/fundamentals/what-does-an-event-tell-us/","/course/fundamentals/from-events-to-results/","/course/fundamentals/when-one-event-is-not-enough/","/course/fundamentals/grouping-events-by-key/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/time/event-time-and-processing-time/","/course/time/putting-events-into-time-windows/","/course/time/sliding-and-session-windows/","/course/time/how-far-has-the-stream-progressed/","/course/time/when-is-a-window-result-ready/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/reliability/when-an-event-arrives-twice-or-never/","/course/reliability/what-must-survive-a-restart/","/course/reliability/recovering-a-consistent-computation/","/course/reliability/one-result-one-external-effect/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/distribution/a-queue-or-a-log/","/course/distribution/splitting-a-log-into-partitions/","/course/distribution/topics-partitions-and-offsets-in-kafka/","/course/distribution/consumer-groups-and-replay-in-kafka/","/course/distribution/how-long-does-kafka-keep-history/","/course/distribution/capturing-changes-from-a-database/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/tables/from-changes-to-a-current-table/","/course/tables/joining-events-with-changing-reference-data/","/course/tables/joining-two-streams-in-time/","/course/tables/a-query-that-keeps-updating/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/implementations/comparing-stream-processing-implementations/","/course/implementations/running-totals-in-kafka-streams/","/course/implementations/running-totals-in-flink/","/course/implementations/running-totals-in-spark-structured-streaming/"]"><span class="astro-ex3va6c7"></span></span><span class="course-total-progress-segment astro-ex3va6c7" data-course-section-articles="["/course/contracts/event-contracts/","/course/contracts/schema-evolution-and-compatibility/","/course/contracts/when-a-record-cannot-be-processed/"]"><span class="astro-ex3va6c7"></span></span></div><p class="course-total-progress-hint astro-ex3va6c7">Mark topics as read at the bottom of each page.</p></div><nav class="course-pagination course-path-next astro-ex3va6c7" aria-label="Next topic" hidden><a href="/introduction/why-stream-processing/" rel="next" data-course-next="[{"href":"/introduction/why-stream-processing/","title":"Why stream processing?","section":"Introduction"},{"href":"/fundamentals/what-does-an-event-tell-us/","title":"What does an event tell us?","section":"Fundamentals"},{"href":"/fundamentals/from-events-to-results/","title":"From events to results","section":"Fundamentals"},{"href":"/fundamentals/when-one-event-is-not-enough/","title":"When one event is not enough","section":"Fundamentals"},{"href":"/fundamentals/grouping-events-by-key/","title":"Grouping events by key","section":"Fundamentals"},{"href":"/time/event-time-and-processing-time/","title":"Event time and processing time","section":"Time and windows"},{"href":"/time/putting-events-into-time-windows/","title":"Putting events into time windows","section":"Time and windows"},{"href":"/time/sliding-and-session-windows/","title":"Sliding and session windows","section":"Time and windows"},{"href":"/time/how-far-has-the-stream-progressed/","title":"How far has the stream progressed?","section":"Time and windows"},{"href":"/time/when-is-a-window-result-ready/","title":"When is a window result ready?","section":"Time and windows"},{"href":"/reliability/when-an-event-arrives-twice-or-never/","title":"When an event arrives twice or never","section":"Duplicates, loss, and recovery"},{"href":"/reliability/what-must-survive-a-restart/","title":"What must survive a restart?","section":"Duplicates, loss, and recovery"},{"href":"/reliability/recovering-a-consistent-computation/","title":"Recovering a consistent computation","section":"Duplicates, loss, and recovery"},{"href":"/reliability/one-result-one-external-effect/","title":"One result, one external effect?","section":"Duplicates, loss, and recovery"},{"href":"/distribution/a-queue-or-a-log/","title":"A queue or a log?","section":"Distributed processing and the log"},{"href":"/distribution/splitting-a-log-into-partitions/","title":"Splitting a log into partitions","section":"Distributed processing and the log"},{"href":"/distribution/topics-partitions-and-offsets-in-kafka/","title":"Topics, partitions, and offsets in Kafka","section":"Distributed processing and the log"},{"href":"/distribution/consumer-groups-and-replay-in-kafka/","title":"Consumer groups and replay in Kafka","section":"Distributed processing and the log"},{"href":"/distribution/how-long-does-kafka-keep-history/","title":"How long does Kafka keep history?","section":"Distributed processing and the log"},{"href":"/distribution/capturing-changes-from-a-database/","title":"Capturing changes from a database","section":"Distributed processing and the log"},{"href":"/tables/from-changes-to-a-current-table/","title":"From changes to a current table","section":"Streams, tables, and joins"},{"href":"/tables/joining-events-with-changing-reference-data/","title":"Joining events with changing reference data","section":"Streams, tables, and joins"},{"href":"/tables/joining-two-streams-in-time/","title":"Joining two streams in time","section":"Streams, tables, and joins"},{"href":"/tables/a-query-that-keeps-updating/","title":"A query that keeps updating","section":"Streams, tables, and joins"},{"href":"/implementations/comparing-stream-processing-implementations/","title":"Comparing stream processing implementations","section":"Implementations and comparison"},{"href":"/implementations/running-totals-in-kafka-streams/","title":"Running totals in Kafka Streams","section":"Implementations and comparison"},{"href":"/implementations/running-totals-in-flink/","title":"Running totals in Flink","section":"Implementations and comparison"},{"href":"/implementations/running-totals-in-spark-structured-streaming/","title":"Running totals in Spark Structured Streaming","section":"Implementations and comparison"},{"href":"/contracts/event-contracts/","title":"Event contracts","section":"Event contracts and changes"},{"href":"/contracts/schema-evolution-and-compatibility/","title":"Schema evolution and compatibility","section":"Event contracts and changes"},{"href":"/contracts/when-a-record-cannot-be-processed/","title":"When a record cannot be processed","section":"Event contracts and changes"}]" class="astro-ex3va6c7"><span class="pagination-direction astro-ex3va6c7">Continue learning<svg aria-hidden="true" class="astro-ex3va6c7 astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="M17.92 11.62a1.001 1.001 0 0 0-.21-.33l-5-5a1.003 1.003 0 1 0-1.42 1.42l3.3 3.29H7a1 1 0 0 0 0 2h7.59l-3.3 3.29a1.002 1.002 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219l5-5a1 1 0 0 0 .21-.33 1 1 0 0 0 0-.76Z"/></svg></span><span class="pagination-title astro-ex3va6c7">Why stream processing?</span><span class="pagination-section astro-ex3va6c7">Introduction</span></a></nav><h2 id="course-path-title" class="astro-ex3va6c7">Course sections</h2><details class="course-ai astro-c5i7r26i"><summary class="astro-c5i7r26i"><span class="course-ai-summary-content astro-c5i7r26i"><svg aria-hidden="true" class="course-ai-arrow astro-c5i7r26i astro-hkc32dio" width="16" height="16" viewBox="0 0 24 24" fill="currentColor" style="--sl-icon-size: 1.25rem;"><path d="m14.83 11.29-4.24-4.24a1 1 0 1 0-1.42 1.41L12.71 12l-3.54 3.54a1 1 0 0 0 0 1.41 1 1 0 0 0 .71.29 1 1 0 0 0 .71-.29l4.24-4.24a1.002 1.002 0 0 0 0-1.42Z"/></svg><span class="astro-c5i7r26i">Learn with an AI assistant</span><span class="course-ai-emoji astro-c5i7r26i" aria-hidden="true">🤖</span></span></summary><div class="course-ai-body astro-c5i7r26i"><p class="course-ai-hint astro-g73rzpxe">Copy the prompt and paste it into a chat with an AI assistant.</p><div class="expressive-code astro-g73rzpxe"><link rel="stylesheet" href="/_astro/ec.w36nc.css"><script type="module" src="/_astro/ec.0vx5m.js"></script><figure class="frame not-content"><figcaption class="header"></figcaption><pre data-language="text" class="wrap" style="--ecMaxLine:459ch"><code><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">You are a tutor for the course "Stream Processing".</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">Course map in Markdown: https://stream-processing-systems.github.io/llms.txt</span></div></div><div class="ec-line"><div class="code"><span style="--0:#d6deeb;--1:#403f53">Walk me through the course in order, starting with the first topic. Open each topic from its link in the map and base your explanations on its content. First ask how I want to study: a short summary, a step-by-step walkthrough, or a deep dive with questions that check my understanding. After each topic, check my understanding and offer to move on to the next one. Use the course examples and terms. If you add anything the course does not say, point it out.</span></div></div></code></pre><div class="copy"><div aria-live="polite"></div><button title="Copy to clipboard" data-copied="Copied!" data-code="You are a tutor for the course "Stream Processing".Course map in Markdown: https://stream-processing-systems.github.io/llms.txtWalk me through the course in order, starting with the first topic. Open each topic from its link in the map and base your explanations on its content. First ask how I want to study: a short summary, a step-by-step walkthrough, or a deep dive with questions that check my understanding. After each topic, check my understanding and offer to move on to the next one. Use the course examples and terms. If you add anything the course does not say, point it out."><div></div></button></div></figure></div></div></details><div class="course-path-grid astro-ex3va6c7"><a href="/introduction/why-stream-processing/" data-course-section="introduction" data-course-articles="["/course/introduction/why-stream-processing/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">01</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 1</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Introduction<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">When results are needed as data arrives and when other approaches are enough.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="1" aria-label="Read: Introduction"></progress></a><a href="/fundamentals/what-does-an-event-tell-us/" data-course-section="fundamentals" data-course-articles="["/course/fundamentals/what-does-an-event-tell-us/","/course/fundamentals/from-events-to-results/","/course/fundamentals/when-one-event-is-not-enough/","/course/fundamentals/grouping-events-by-key/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">02</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 4</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Fundamentals<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How an event becomes a result and why processing needs state and keys.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="4" aria-label="Read: Fundamentals"></progress></a><a href="/time/event-time-and-processing-time/" data-course-section="time" data-course-articles="["/course/time/event-time-and-processing-time/","/course/time/putting-events-into-time-windows/","/course/time/sliding-and-session-windows/","/course/time/how-far-has-the-stream-progressed/","/course/time/when-is-a-window-result-ready/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">03</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 5</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Time and windows<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How to group events in time and decide when a result is ready.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="5" aria-label="Read: Time and windows"></progress></a><a href="/reliability/when-an-event-arrives-twice-or-never/" data-course-section="reliability" data-course-articles="["/course/reliability/when-an-event-arrives-twice-or-never/","/course/reliability/what-must-survive-a-restart/","/course/reliability/recovering-a-consistent-computation/","/course/reliability/one-result-one-external-effect/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">04</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 4</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Duplicates, loss, and recovery<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How a system handles repeated events and recovers after a failure.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="4" aria-label="Read: Duplicates, loss, and recovery"></progress></a><a href="/distribution/a-queue-or-a-log/" data-course-section="distribution" data-course-articles="["/course/distribution/a-queue-or-a-log/","/course/distribution/splitting-a-log-into-partitions/","/course/distribution/topics-partitions-and-offsets-in-kafka/","/course/distribution/consumer-groups-and-replay-in-kafka/","/course/distribution/how-long-does-kafka-keep-history/","/course/distribution/capturing-changes-from-a-database/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">05</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 6</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Distributed processing and the log<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How logs and partitions distribute work and allow events to be replayed.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="6" aria-label="Read: Distributed processing and the log"></progress></a><a href="/tables/from-changes-to-a-current-table/" data-course-section="tables" data-course-articles="["/course/tables/from-changes-to-a-current-table/","/course/tables/joining-events-with-changing-reference-data/","/course/tables/joining-two-streams-in-time/","/course/tables/a-query-that-keeps-updating/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">06</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 4</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Streams, tables, and joins<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How streams build current tables and combine related data over time.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="4" aria-label="Read: Streams, tables, and joins"></progress></a><a href="/implementations/comparing-stream-processing-implementations/" data-course-section="implementations" data-course-articles="["/course/implementations/comparing-stream-processing-implementations/","/course/implementations/running-totals-in-kafka-streams/","/course/implementations/running-totals-in-flink/","/course/implementations/running-totals-in-spark-structured-streaming/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">07</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 4</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Implementations and comparison<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How Kafka Streams, Flink, and Spark approach familiar processing tasks.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="4" aria-label="Read: Implementations and comparison"></progress></a><a href="/contracts/event-contracts/" data-course-section="contracts" data-course-articles="["/course/contracts/event-contracts/","/course/contracts/schema-evolution-and-compatibility/","/course/contracts/when-a-record-cannot-be-processed/"]" class="astro-ex3va6c7 course-path-card"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">08</span><span class="course-path-status astro-ex3va6c7"><span class="course-path-count astro-ex3va6c7"><span class="sr-only astro-ex3va6c7">Read: </span><span data-course-read-count class="astro-ex3va6c7">0</span> / 3</span><span class="course-progress astro-ex3va6c7" data-state="new" aria-hidden="true"></span></span></span><span class="course-path-name astro-ex3va6c7">Event contracts and changes<span class="sr-only astro-ex3va6c7"></span></span><span class="course-path-description astro-ex3va6c7">How event changes affect consumers and what to do with invalid input.</span><progress class="course-path-progress astro-ex3va6c7" value="0" max="3" aria-label="Read: Event contracts and changes"></progress></a><div data-course-section="serving" class="astro-ex3va6c7 course-path-card course-path-card-planned"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">09</span></span><span class="course-path-name astro-ex3va6c7">Using the results<span class="sr-only astro-ex3va6c7"> — Planned</span></span><span class="course-path-description astro-ex3va6c7">How results are read or used to trigger actions, and why freshness matters.</span></div><div data-course-section="operations" class="astro-ex3va6c7 course-path-card course-path-card-planned"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">10</span></span><span class="course-path-name astro-ex3va6c7">Operating a stream processing system<span class="sr-only astro-ex3va6c7"> — Planned</span></span><span class="course-path-description astro-ex3va6c7">How to recognize overload, find its causes, and choose a response.</span></div><div data-course-section="whole-system" class="astro-ex3va6c7 course-path-card course-path-card-planned"><span class="course-path-card-top astro-ex3va6c7"><span class="course-path-number astro-ex3va6c7">11</span></span><span class="course-path-name astro-ex3va6c7">The complete streaming system<span class="sr-only astro-ex3va6c7"> — Planned</span></span><span class="course-path-description astro-ex3va6c7">How data moves through a complete system and what trade-offs shape its design.</span></div></div></section><div class="sl-markdown-content" data-course-widgets data-widget-labels="{"close":"Close","definition":"Definition:","diagram":"Diagram viewer","zoomIn":"Zoom in","zoomOut":"Zoom out","fit":"Fit","original":"Open original","zoom":"Zoom","diagramHint":"Use + / − to zoom. Scroll to explore the diagram.","definitions":"Definitions"}" tabindex="-1"></div><footer class="sl-flex astro-ddtxxk7k"><div class="meta sl-flex astro-ddtxxk7k"></div><nav class="course-pagination" aria-label="Article navigation"></nav></footer><p class="course-license astro-7g3h5dfi">© 2026 <a href="https://alexengrig.github.io" class="astro-7g3h5dfi">Grig Alex</a> · <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/" rel="license" class="astro-7g3h5dfi">CC BY-NC-SA 4.0</a></p></div></div></main></div></div></div></div></body></html>