fuzhengwei / fuzhengwei/blog.github.io

netty案例,netty4.1中级拓展篇十一《Netty基于ChunkedStream数据流切块传输》 - bugstack虫洞栈

Open
#59 0 comments 0 reactions 0 assignees View on GitHub
b685f42e10ada9caffff8fb6491a9247 gitment
Dominant language
HTML
Stars
14
Forks
7
PR merge metrics
No merged PRs in 30d

Description

https://fuzhengwei.github.io/itstack-demo-netty-2/2019/08/26/netty%E6%A1%88%E4%BE%8B-netty4.1%E4%B8%AD%E7%BA%A7%E6%8B%93%E5%B1%95%E7%AF%87%E5%8D%81%E4%B8%80-Netty%E5%9F%BA%E4%BA%8EChunkedStream%E6%95%B0%E6%8D%AE%E6%B5%81%E5%88%87%E5%9D%97%E4%BC%A0%E8%BE%93.html

前言介绍


在Netty这种异步NIO框架的结构下,服务端与客户端通信过程中,高效、频繁、大量的写入大块数据时,因网络传输饱和的可能性就会造成数据处理拥堵、GC频繁、用户掉线的可能性。那么由于写操作是非阻塞的,所以即使没有写出所有的数据,写操作也会在完成时返回并通知ChannelFuture。当这种情况发生时,如果仍然不停地写入,就有内存耗尽的风险。所以在写大块数据时,需要对大块数据进行切割发送处理。

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue provides a linked Netty article and introductory HTML content, but names no repository files, tests, or entry points. Start by reviewing the linked article and clarifying what change is requested; completion cannot be defined from the current issue.

Written by the indexing model from the issue text.

Assessment

Domain
documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
10/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.