最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

what the diff between async io and multi slot in flink - Stack Overflow

programmeradmin0浏览0评论

in same cpu and memory resource for flink task, if there is network access cost in processing messages, what the difference between use asyncio and allocate multi slot?

for example, only one taskmanager, total resource is 1 cpu and 4 G memeory. one is allocate 10 slot in taskmanager another is use async io in flink, and make thread-pool size is 10

in same cpu and memory resource for flink task, if there is network access cost in processing messages, what the difference between use asyncio and allocate multi slot?

for example, only one taskmanager, total resource is 1 cpu and 4 G memeory. one is allocate 10 slot in taskmanager another is use async io in flink, and make thread-pool size is 10

Share Improve this question asked 10 hours ago ChronosChronos 693 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Async I/O in Flink handles non-blocking external calls (e.g., databases, APIs) using AsyncFunction, improving throughput by avoiding I/O bottlenecks.

Multi-slot execution manages task parallelism by allowing multiple tasks to share a TaskManager’s slots, optimizing resource usage.

Key Difference: Async I/O improves external call efficiency, while multi-slot execution optimizes resource allocation in Flink’s cluster.

发布评论

评论列表(0)

  1. 暂无评论