baidu / baidu/Jprotobuf-rpc-socket

异步化业务处理线程

Open
#22 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
535
Forks
216
PR merge metrics
No merged PRs in 30d

Description

我看现在的实现是基于注册表查找,然后同步的去调用handler.doHandle(request)进行的业务处理,如果业务耗时比较长,那么IO Thread就可以可能被长期占用,是否有计划把这里改为异步处理,通过回调的方式让结果回归到IOThread,从而在一部分时间让出IOThread的使用权,如果是Java 6或者7的话,可以利用利用Google Guava的ListenableFuture来实现这个目的

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing the registry lookup to handler.doHandle(request) and document how the IO Thread currently handles the result. Done would require an agreed asynchronous callback design that lets the IO Thread be released during long-running business work and safely receives the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.