知识卡片
进程边界区分API调用
区分进程内与进程外 API 调用,要看处理调用的是不是发起方所在的操作系统进程。同一进程里的方法调用属于进程内;由另一个进程处理的 HTTP 调用属于进程外。后者通常经过网络,但不要求跨物理机器。把模块接口拆成远程接口时,延迟与故障边界会随之改变。
这张卡片看不懂?
这张卡片已通过人工审查,不再接受失败反馈。
已有反馈 · 0 条
还没有人提交反馈。
在整书笔记中的位置
原书出处 · 1 处
- · 查看原书依据
Broadly speaking, APIs can be broken into two general categories depending on whether the API invocation is in process or out of process. The process being referred to here is an operating system (OS) process. For example, a Java method invocation from one class to another is an in-process API invocation, as the call is handled by the same process from which the call was made.
参考来源
- 位置:《Mastering API Architecture》导言《Introduction》之《A Brief Introduction to APIs》(源文件:_epub-src/OEBPS/introduction01.xhtml)
- 结论依据:原文以操作系统进程作为分类标准,分别用 Java 类间方法调用和 .NET 调用外部 HTTP API 举例,并说进程外调用通常经过网络。
- 原始内容:Broadly speaking, APIs can be broken into two general categories depending on whether the API invocation is in process or out of process . The process being referred to here is an operating system (OS) process. For example, a Java method invocation from one class to another is an in-process API invocation, as the call is handled by the same process from which the call was made.