<@U04S8PLJWMT> does airbyte runs streams in parall...
# ask-ai
o
@kapa.ai does airbyte runs streams in parallel? i have connection with 10 streams and it takes a lot fo time to sync all the data how can i improve it?
🙏 1
k
Short answer: by default, most API-based sources process streams serially within a connection; they are not parallelized today. The ingestion order follows the connector’s streams list (no extra ordering applied) ([Support QA](https://docs.airbyte.com)). Ways to improve performance: - Run multiple connections in parallel with an orchestrator. For example, using the Kestra plugin you can trigger several Airbyte connections concurrently via a Parallel flow ([Using the Kestra Plugin – Simple demo](https://docs.airbyte.com/platform/operator-guides/using-kestra-plugin#3-simple-demo)). - Use connector-level concurrency where supported. The Airbyte CDK supports building connectors that read multiple stream slices in parallel using ConcurrentSourceAdapter (for custom or updated connectors) ([Custom Python connector – Concurrent](https://docs.airbyte.com/platform/connector-development/tutorials/custom-python-connector/concurrency)). Config-based connectors can also define a ConcurrencyLevel to process multiple streams or partitions simultaneously when implemented by the connector ([YAML Reference – ConcurrencyLevel](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel)). - Scale job parallelism at the platform level (Kubernetes). Increase concurrent sync capacity by tuning SUBMITTER_NUM_THREADS, MAX_SYNC_WORKERS, and adding worker replicas; a single worker is effectively limited to ~40 parallel jobs, so use multiple workers for higher concurrency (example settings for ~100 concurrent syncs are provided) ([Forum: scaling on k8s](https://discuss.airbyte.io/t/826)). If you share which connector(s) you use, we can check whether connector-level concurrency is available; otherwise, consider orchestrating multiple smaller connections in parallel or scaling workers.
o
@kapa.ai my job has multiple stream that it needs to load and finish each stream takes a lot of time. paralleling jobs will not help me, i need to parallel the stream inside the joob
k
A message from kapa.ai
Today, most sources run streams serially within a job; they’re not parallelized by default. So parallelizing “jobs” won’t make a single job’s streams faster unless the connector itself implements concurrency ([Support QA](https://docs.airbyte.com)). Your options to parallelize within a job: - Use/implement connector-level concurrency (CDK). Python connectors can be built to read multiple stream slices concurrently via ConcurrentSourceAdapter and ConcurrentCursor; this enables parallel processing of partitions/streams inside one sync ([Custom Python connector – Concurrent](https://docs.airbyte.com/platform/connector-development/tutorials/custom-python-connector/concurrency)). You can also add API rate-limit aware throttling with MovingWindowCallRatePolicy ([Custom Python connector – Concurrent](https://docs.airbyte.com/platform/next/connector-development/tutorials/custom-python-connector/concurrency)). - For config-based connectors (YAML), define ConcurrencyLevel (default_concurrency and max_concurrency) to process multiple streams/partitions at the same time, if the connector supports it ([YAML Reference – ConcurrencyLevel](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference#/definitions/ConcurrencyLevel)). Notes/limits: - Substreams may still serialize if implemented via a synchronous parent iteration; full concurrency requires using the concurrent CDK constructs directly ([Custom Python connector – Concurrent](https://docs.airbyte.com/platform/connector-development/tutorials/custom-python-connector/concurrency)). - Parallel reads across multiple streams from a single source have been a requested feature; work has been tied to broader speed improvements, but not universally available across connectors yet ([GitHub issue: parallel reads](https://github.com/airbytehq/airbyte/issues/7749)). - There’s also a request to run a single stream independently, which is not yet available as a product option ([Discussion: single-stream sync](https://github.com/airbytehq/airbyte/discussions/52042)). If you tell me which connector you’re using, I can advise whether it already supports CDK concurrency or how to add it.