# desflow > Realistic event streams from a SimPy simulation you can steer while it runs, written to Kafka, Redis, PostgreSQL, Parquet, JSONL and Iceberg. ## Home - [Home](https://jaehyeon.me/desflow/latest/index.md) ## Installation - [Installation](https://jaehyeon.me/desflow/latest/installation/index.md) ## Learn - [Learn](https://jaehyeon.me/desflow/latest/learn/index.md) - [What Is DES?](https://jaehyeon.me/desflow/latest/learn/what-is-des/index.md) - [First Simulation](https://jaehyeon.me/desflow/latest/learn/first-model/first-simulation/index.md) - [Queues and Capacity](https://jaehyeon.me/desflow/latest/learn/first-model/queues-and-capacity/index.md) - [Randomness and Seeds](https://jaehyeon.me/desflow/latest/learn/first-model/randomness-and-seeds/index.md) - [Measuring a Run](https://jaehyeon.me/desflow/latest/learn/first-model/measuring-a-run/index.md) - [End Conditions](https://jaehyeon.me/desflow/latest/learn/first-model/end-conditions/index.md) - [Choosing Inputs](https://jaehyeon.me/desflow/latest/learn/inputs/choosing-inputs/index.md) - [Fitting the Inputs](https://jaehyeon.me/desflow/latest/learn/inputs/fit-the-inputs/index.md) - [Changing Demand](https://jaehyeon.me/desflow/latest/learn/inputs/changing-demand/index.md) - [Local Replay](https://jaehyeon.me/desflow/latest/learn/inputs/local-replay/index.md) - [Stock](https://jaehyeon.me/desflow/latest/learn/shop-logic/stock/index.md) - [Priorities](https://jaehyeon.me/desflow/latest/learn/shop-logic/priorities/index.md) - [A Flow of Tasks](https://jaehyeon.me/desflow/latest/learn/shop-logic/flow-of-tasks/index.md) - [Process Interaction](https://jaehyeon.me/desflow/latest/learn/shop-logic/process-interaction/index.md) - [Patience](https://jaehyeon.me/desflow/latest/learn/shop-logic/patience/index.md) - [Interruptions](https://jaehyeon.me/desflow/latest/learn/shop-logic/interruptions/index.md) - [Competing Resources](https://jaehyeon.me/desflow/latest/learn/shop-logic/competing-resources/index.md) - [Filtered Inventory](https://jaehyeon.me/desflow/latest/learn/shop-logic/filtered-inventory/index.md) - [Trusting Results](https://jaehyeon.me/desflow/latest/learn/studies/trusting-results/index.md) - [Comparing Designs](https://jaehyeon.me/desflow/latest/learn/studies/comparing-designs/index.md) - [Parameter Sweeps](https://jaehyeon.me/desflow/latest/learn/studies/parameter-sweeps/index.md) - [Checking a Model](https://jaehyeon.me/desflow/latest/learn/studies/checking-a-model/index.md) - [Complete Model](https://jaehyeon.me/desflow/latest/learn/studies/complete-model/index.md) - [Live Changes](https://jaehyeon.me/desflow/latest/learn/running-live/live-changes/index.md) - [Streaming Out](https://jaehyeon.me/desflow/latest/learn/running-live/streaming-out/index.md) - [Queueing Basics](https://jaehyeon.me/desflow/latest/learn/concepts/queueing-basics/index.md) - [A Simulation Study](https://jaehyeon.me/desflow/latest/learn/concepts/a-simulation-study/index.md) - [Checking and Validating](https://jaehyeon.me/desflow/latest/learn/concepts/checking-and-validating/index.md) - [Output Analysis](https://jaehyeon.me/desflow/latest/learn/concepts/output-analysis/index.md) - [Readiness and Reporting](https://jaehyeon.me/desflow/latest/learn/concepts/readiness-and-reporting/index.md) - [Common Mistakes](https://jaehyeon.me/desflow/latest/learn/concepts/common-mistakes/index.md) ## User Guide - [User Guide](https://jaehyeon.me/desflow/latest/user-guide/index.md) - [How desflow Works](https://jaehyeon.me/desflow/latest/user-guide/how-desflow-works/index.md) - [Writing a Model](https://jaehyeon.me/desflow/latest/user-guide/writing-a-model/index.md) - [YAML Blueprints](https://jaehyeon.me/desflow/latest/user-guide/writing-a-model/blueprints/index.md) - [Builder API](https://jaehyeon.me/desflow/latest/user-guide/writing-a-model/builder-api/index.md) - [Low-level API](https://jaehyeon.me/desflow/latest/user-guide/writing-a-model/low-level-api/index.md) - [Model Parts](https://jaehyeon.me/desflow/latest/user-guide/model-parts/index.md) - [Arrivals and Services](https://jaehyeon.me/desflow/latest/user-guide/model-parts/arrivals-and-services/index.md) - [Input Fitting](https://jaehyeon.me/desflow/latest/user-guide/model-parts/input-fitting/index.md) - [Task Flow](https://jaehyeon.me/desflow/latest/user-guide/model-parts/task-flow/index.md) - [Stores and Containers](https://jaehyeon.me/desflow/latest/user-guide/model-parts/stores-and-containers/index.md) - [Tasks and Processes](https://jaehyeon.me/desflow/latest/user-guide/tasks-and-processes/index.md) - [Tasks](https://jaehyeon.me/desflow/latest/user-guide/tasks-and-processes/tasks/index.md) - [Processes](https://jaehyeon.me/desflow/latest/user-guide/tasks-and-processes/processes/index.md) - [Signals and Waiting](https://jaehyeon.me/desflow/latest/user-guide/tasks-and-processes/signals-and-waiting/index.md) - [Failures](https://jaehyeon.me/desflow/latest/user-guide/tasks-and-processes/failures/index.md) - [Resources](https://jaehyeon.me/desflow/latest/user-guide/resources/index.md) - [Units and Queues](https://jaehyeon.me/desflow/latest/user-guide/resources/units-and-queues/index.md) - [Priority and Preemption](https://jaehyeon.me/desflow/latest/user-guide/resources/priority-and-preemption/index.md) - [Several Resources](https://jaehyeon.me/desflow/latest/user-guide/resources/several-resources/index.md) - [Custom Resource Types](https://jaehyeon.me/desflow/latest/user-guide/resources/custom-resource-types/index.md) - [Time and Pacing](https://jaehyeon.me/desflow/latest/user-guide/time-and-pacing/index.md) - [Clocks and Pacing](https://jaehyeon.me/desflow/latest/user-guide/time-and-pacing/clocks-and-pacing/index.md) - [Run Length](https://jaehyeon.me/desflow/latest/user-guide/time-and-pacing/run-length/index.md) - [Results](https://jaehyeon.me/desflow/latest/user-guide/results/index.md) - [Built-in Statistics](https://jaehyeon.me/desflow/latest/user-guide/results/statistics/index.md) - [Replications](https://jaehyeon.me/desflow/latest/user-guide/results/replications/index.md) - [Experiments](https://jaehyeon.me/desflow/latest/user-guide/results/experiments/index.md) - [Experiment Results](https://jaehyeon.me/desflow/latest/user-guide/results/experiment-results/index.md) - [Live Runs and Connectors](https://jaehyeon.me/desflow/latest/user-guide/live-runs-and-connectors/index.md) - [Live Parameters](https://jaehyeon.me/desflow/latest/user-guide/live-runs-and-connectors/live-parameters/index.md) - [Ingress](https://jaehyeon.me/desflow/latest/user-guide/live-runs-and-connectors/ingress/index.md) - [Egress](https://jaehyeon.me/desflow/latest/user-guide/live-runs-and-connectors/egress/index.md) ## How-To - [How-To](https://jaehyeon.me/desflow/latest/how-to/index.md) - [Vary Arrivals by Time](https://jaehyeon.me/desflow/latest/how-to/modelling/time-varying-arrivals/index.md) - [Add Reneging and Balking](https://jaehyeon.me/desflow/latest/how-to/modelling/reneging-and-balking/index.md) - [Wait for One or All](https://jaehyeon.me/desflow/latest/how-to/modelling/wait-for-one-or-all/index.md) - [Hand Off to a Resource](https://jaehyeon.me/desflow/latest/how-to/modelling/multi-resource-handoffs/index.md) - [Share Work by Weight](https://jaehyeon.me/desflow/latest/how-to/modelling/share-by-weight/index.md) - [Model Breakdowns](https://jaehyeon.me/desflow/latest/how-to/modelling/breakdowns/index.md) - [Add Resources Mid-run](https://jaehyeon.me/desflow/latest/how-to/modelling/dynamic-topology/index.md) - [Switch a Task On Mid-run](https://jaehyeon.me/desflow/latest/how-to/modelling/switch-a-task-on/index.md) - [Serve Entities Together](https://jaehyeon.me/desflow/latest/how-to/modelling/serve-entities-together/index.md) - [Send Data to a Sink](https://jaehyeon.me/desflow/latest/how-to/generate-data/send-data-to-a-sink/index.md) - [Extend Payloads](https://jaehyeon.me/desflow/latest/how-to/generate-data/realistic-fields/index.md) - [Choices and Numbers](https://jaehyeon.me/desflow/latest/how-to/generate-data/choices-and-numbers/index.md) - [Timestamps and Gaps](https://jaehyeon.me/desflow/latest/how-to/generate-data/timestamps-and-gaps/index.md) - [Stop After a Count](https://jaehyeon.me/desflow/latest/how-to/generate-data/stop-after-a-count/index.md) - [Many Entities](https://jaehyeon.me/desflow/latest/how-to/generate-data/many-entities/index.md) - [Build on the Last Value](https://jaehyeon.me/desflow/latest/how-to/generate-data/build-on-the-last-value/index.md) - [Skewed Keys](https://jaehyeon.me/desflow/latest/how-to/generate-data/skewed-keys/index.md) - [Change State Over Time](https://jaehyeon.me/desflow/latest/how-to/generate-data/change-state-over-time/index.md) - [Look Up Other Records](https://jaehyeon.me/desflow/latest/how-to/generate-data/look-up-other-records/index.md) - [Join Across Sinks](https://jaehyeon.me/desflow/latest/how-to/generate-data/join-across-sinks/index.md) - [Change the Schema](https://jaehyeon.me/desflow/latest/how-to/generate-data/change-the-schema/index.md) - [Route Records to Topics](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/complex-routing/index.md) - [Use Avro and Pydantic](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/avro-and-pydantic/index.md) - [Use Schema Serializers](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/json-schema-and-protobuf/index.md) - [Connect to Secure Kafka](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/kafka-security/index.md) - [Write a Connector](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/write-a-connector/index.md) - [Data at Scale](https://jaehyeon.me/desflow/latest/how-to/records-and-kafka/data-at-scale/index.md) - [Write to Cloud Storage](https://jaehyeon.me/desflow/latest/how-to/storage-and-tables/cloud-storage/index.md) - [Write to Iceberg Tables](https://jaehyeon.me/desflow/latest/how-to/storage-and-tables/iceberg-tables/index.md) - [Keep Records in Memory](https://jaehyeon.me/desflow/latest/how-to/storage-and-tables/keep-records-in-memory/index.md) - [Fit a Distribution](https://jaehyeon.me/desflow/latest/how-to/analysis/fit-a-distribution/index.md) - [Check Against Theory](https://jaehyeon.me/desflow/latest/how-to/analysis/check-against-theory/index.md) - [Test a Model](https://jaehyeon.me/desflow/latest/how-to/analysis/test-a-model/index.md) - [Analyse the Event Log](https://jaehyeon.me/desflow/latest/how-to/analysis/analyse-the-event-log/index.md) - [Animate a Run](https://jaehyeon.me/desflow/latest/how-to/analysis/animate-a-run/index.md) - [Test a Pipeline](https://jaehyeon.me/desflow/latest/how-to/analysis/test-a-pipeline/index.md) - [Call Python from YAML](https://jaehyeon.me/desflow/latest/how-to/tools/yaml-advanced/index.md) - [Set Up Your Editor](https://jaehyeon.me/desflow/latest/how-to/tools/set-up-your-editor/index.md) - [Tune Performance](https://jaehyeon.me/desflow/latest/how-to/tools/performance-tuning/index.md) ## Generators - [Generators](https://jaehyeon.me/desflow/latest/generators/index.md) - [integer](https://jaehyeon.me/desflow/latest/generators/random-numbers/integer/index.md) - [uniform](https://jaehyeon.me/desflow/latest/generators/random-numbers/uniform/index.md) - [normal](https://jaehyeon.me/desflow/latest/generators/random-numbers/normal/index.md) - [sample](https://jaehyeon.me/desflow/latest/generators/random-numbers/sample/index.md) - [boolean](https://jaehyeon.me/desflow/latest/generators/random-numbers/boolean/index.md) - [one_of](https://jaehyeon.me/desflow/latest/generators/choices/one-of/index.md) - [weighted](https://jaehyeon.me/desflow/latest/generators/choices/weighted/index.md) - [pick](https://jaehyeon.me/desflow/latest/generators/choices/pick/index.md) - [fake](https://jaehyeon.me/desflow/latest/generators/text-and-ids/fake/index.md) - [uuid](https://jaehyeon.me/desflow/latest/generators/text-and-ids/uuid/index.md) - [sequence](https://jaehyeon.me/desflow/latest/generators/text-and-ids/sequence/index.md) - [format](https://jaehyeon.me/desflow/latest/generators/text-and-ids/format/index.md) - [lower](https://jaehyeon.me/desflow/latest/generators/text-and-ids/lower/index.md) - [upper](https://jaehyeon.me/desflow/latest/generators/text-and-ids/upper/index.md) - [now](https://jaehyeon.me/desflow/latest/generators/time/now/index.md) - [format_time](https://jaehyeon.me/desflow/latest/generators/time/format-time/index.md) - [add](https://jaehyeon.me/desflow/latest/generators/maths/add/index.md) - [subtract](https://jaehyeon.me/desflow/latest/generators/maths/subtract/index.md) - [multiply](https://jaehyeon.me/desflow/latest/generators/maths/multiply/index.md) - [divide](https://jaehyeon.me/desflow/latest/generators/maths/divide/index.md) - [min](https://jaehyeon.me/desflow/latest/generators/maths/min/index.md) - [max](https://jaehyeon.me/desflow/latest/generators/maths/max/index.md) - [when](https://jaehyeon.me/desflow/latest/generators/conditions/when/index.md) - [switch](https://jaehyeon.me/desflow/latest/generators/conditions/switch/index.md) - [expr](https://jaehyeon.me/desflow/latest/generators/conditions/expr/index.md) - [literal](https://jaehyeon.me/desflow/latest/generators/conditions/literal/index.md) - [object](https://jaehyeon.me/desflow/latest/generators/structure/object/index.md) - [repeat](https://jaehyeon.me/desflow/latest/generators/structure/repeat/index.md) - [attr](https://jaehyeon.me/desflow/latest/generators/model-state/attr/index.md) - [var](https://jaehyeon.me/desflow/latest/generators/model-state/var/index.md) - [param](https://jaehyeon.me/desflow/latest/generators/model-state/param/index.md) - [entity](https://jaehyeon.me/desflow/latest/generators/model-state/entity/index.md) - [lookup](https://jaehyeon.me/desflow/latest/generators/related-records/lookup/index.md) - [previous](https://jaehyeon.me/desflow/latest/generators/related-records/previous/index.md) - [upstream](https://jaehyeon.me/desflow/latest/generators/related-records/upstream/index.md) - [aggregate](https://jaehyeon.me/desflow/latest/generators/related-records/aggregate/index.md) - [row](https://jaehyeon.me/desflow/latest/generators/related-records/row/index.md) - [call](https://jaehyeon.me/desflow/latest/generators/python/call/index.md) ## Command Line - [Command Line](https://jaehyeon.me/desflow/latest/cli/index.md) - [desflow run](https://jaehyeon.me/desflow/latest/cli/run/index.md) - [desflow check](https://jaehyeon.me/desflow/latest/cli/check/index.md) - [desflow test](https://jaehyeon.me/desflow/latest/cli/test/index.md) - [desflow explain](https://jaehyeon.me/desflow/latest/cli/explain/index.md) - [desflow experiment](https://jaehyeon.me/desflow/latest/cli/experiment/index.md) - [desflow report](https://jaehyeon.me/desflow/latest/cli/report/index.md) - [desflow fit](https://jaehyeon.me/desflow/latest/cli/fit/index.md) - [desflow dist](https://jaehyeon.me/desflow/latest/cli/dist/index.md) - [desflow schema](https://jaehyeon.me/desflow/latest/cli/schema/index.md) - [desflow mcp](https://jaehyeon.me/desflow/latest/cli/mcp/index.md) - [desflow examples](https://jaehyeon.me/desflow/latest/cli/examples/index.md) - [desflow examples list](https://jaehyeon.me/desflow/latest/cli/examples-list/index.md) - [desflow examples get](https://jaehyeon.me/desflow/latest/cli/examples-get/index.md) ## Integrations - [Overview](https://jaehyeon.me/desflow/latest/integrations/index.md) - [Airflow](https://jaehyeon.me/desflow/latest/integrations/airflow/index.md) - [Dagster](https://jaehyeon.me/desflow/latest/integrations/dagster/index.md) - [Prefect](https://jaehyeon.me/desflow/latest/integrations/prefect/index.md) - [Kestra](https://jaehyeon.me/desflow/latest/integrations/kestra/index.md) ## AI Assistants - [Overview](https://jaehyeon.me/desflow/latest/ai/index.md) - [Plugin](https://jaehyeon.me/desflow/latest/ai/plugin/index.md) - [Agent Skill](https://jaehyeon.me/desflow/latest/ai/agent-skill/index.md) - [Draft a Model](https://jaehyeon.me/desflow/latest/ai/draft-a-model/index.md) - [Write Tests](https://jaehyeon.me/desflow/latest/ai/write-tests/index.md) - [Run a Study](https://jaehyeon.me/desflow/latest/ai/run-a-study/index.md) - [Fit a Distribution](https://jaehyeon.me/desflow/latest/ai/fit-a-distribution/index.md) - [Write Another Form](https://jaehyeon.me/desflow/latest/ai/write-another-form/index.md) - [Port a SimPy Program](https://jaehyeon.me/desflow/latest/ai/port-a-simpy-program/index.md) - [MCP Server](https://jaehyeon.me/desflow/latest/ai/mcp-server/index.md) ## Gallery - [Overview](https://jaehyeon.me/desflow/latest/gallery/index.md) - [Data Sets](https://jaehyeon.me/desflow/latest/gallery/data-generation/data-sets/index.md) - [Event Streams](https://jaehyeon.me/desflow/latest/gallery/data-generation/event-streams/index.md) - [Processes with Queues](https://jaehyeon.me/desflow/latest/gallery/data-generation/processes-with-queues/index.md) - [Local Simulation](https://jaehyeon.me/desflow/latest/gallery/simulation-models/local/index.md) - [Kafka Digital Twin](https://jaehyeon.me/desflow/latest/gallery/simulation-models/kafka/index.md) - [Fast-Forward to Parquet](https://jaehyeon.me/desflow/latest/gallery/simulation-models/parquet/index.md) - [Fast-Forward to Iceberg](https://jaehyeon.me/desflow/latest/gallery/simulation-models/iceberg/index.md) - [PostgreSQL](https://jaehyeon.me/desflow/latest/gallery/simulation-models/postgres/index.md) - [Redis](https://jaehyeon.me/desflow/latest/gallery/simulation-models/redis/index.md) - [Parquet History, Kafka Live](https://jaehyeon.me/desflow/latest/gallery/simulation-models/backfill-live/index.md) - [Related Records](https://jaehyeon.me/desflow/latest/gallery/simulation-models/advanced-postgres-orders/index.md) - [Projects Using desflow](https://jaehyeon.me/desflow/latest/gallery/projects/index.md) ## SimPy and desflow - [SimPy and desflow](https://jaehyeon.me/desflow/latest/simpy/index.md) - [Coming from SimPy](https://jaehyeon.me/desflow/latest/simpy/coming-from-simpy/index.md) - [SimPy Examples](https://jaehyeon.me/desflow/latest/simpy/examples/index.md) - [Bank Renege](https://jaehyeon.me/desflow/latest/simpy/examples/bank-renege/index.md) - [Carwash](https://jaehyeon.me/desflow/latest/simpy/examples/carwash/index.md) - [Machine Shop](https://jaehyeon.me/desflow/latest/simpy/examples/machine-shop/index.md) - [Movie Renege](https://jaehyeon.me/desflow/latest/simpy/examples/movie-renege/index.md) - [Gas Station Refueling](https://jaehyeon.me/desflow/latest/simpy/examples/gas-station-refuel/index.md) - [Process Communication](https://jaehyeon.me/desflow/latest/simpy/examples/process-communication/index.md) - [Event Latency](https://jaehyeon.me/desflow/latest/simpy/examples/latency/index.md) - [SimPy Compatibility](https://jaehyeon.me/desflow/latest/simpy/compatibility/index.md) ## Reference - [YAML Keys](https://jaehyeon.me/desflow/latest/reference/yaml-keys/index.md) - [API Reference](https://jaehyeon.me/desflow/latest/reference/api/index.md) - [Distributions](https://jaehyeon.me/desflow/latest/reference/distributions/index.md) - [Statistic Names](https://jaehyeon.me/desflow/latest/reference/statistics/index.md) - [Records and Telemetry](https://jaehyeon.me/desflow/latest/reference/records-and-telemetry/index.md) ## About - [Why desflow](https://jaehyeon.me/desflow/latest/about/why-desflow/index.md) - [Roadmap](https://jaehyeon.me/desflow/latest/about/roadmap/index.md) - [Upgrading to 1.0](https://jaehyeon.me/desflow/latest/about/upgrading-to-1.0/index.md) - [Compatibility Policy](https://jaehyeon.me/desflow/latest/about/compatibility/index.md) - [Changelog](https://jaehyeon.me/desflow/latest/about/changelog/index.md)