apache / apache/servicecomb-java-chassis

3.0.0将注册修改为同步注册的原因是什么?

Open
#4,007 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
814
Avg merge
8d 23h
Merged PRs (30d)
1

Description

3.0.0将注册修改为同步注册了,也就是说启动过程中如果注册不成功, 那么启动会失败。 启动成功后处理AFTER_REGISTRY事件,如果处理失败, 启动会失败。
由于CSE是支持与spring并存的,微服务接口可供直接ip:port调用的:
当前在2.x版本,微服务注册为异步注册,微服务注册失败不会影响服务启动,这种情况下,对于提供rest接口的服务,其是可以正常提供服务。
若是改为同步注册,则意味着微服务注册失败的话,其非cse接口也无法提供服务了

Contributor guide

No contributing guide indexed for this repository

Research direction

No files, tests, or entry points are named. Start by reading the issue's comparison of asynchronous 2.x registration with synchronous 3.0.0 registration, then review the comment thread; done means documenting or deciding why the behavior changed and how registration failure should affect non-CSE interfaces.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.