From bb8229d93848928abbc46a78998224c3cb9fcce1 Mon Sep 17 00:00:00 2001 From: Xargin Date: Tue, 6 Mar 2018 12:35:45 +0800 Subject: [PATCH] add protocol free section --- ch6-web/ch6-08-protocol-free.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 ch6-web/ch6-08-protocol-free.md diff --git a/ch6-web/ch6-08-protocol-free.md b/ch6-web/ch6-08-protocol-free.md new file mode 100644 index 0000000..9b4c1e9 --- /dev/null +++ b/ch6-web/ch6-08-protocol-free.md @@ -0,0 +1,7 @@ +# 6.8. Protocol-free 协议无关的服务入口 + +我们在之前的小节中看到了如何编写一个 thrift/grpc 协议的服务。在更早的小节中,我们看到了如何编写一个 http 的服务。 + +如果对于我们的服务模块,提出了更进一步的要求,想要同时支持 http 和 thrift 协议。要怎么办。 + +在 Uncle Bob 的 《Clean Architecture》 中对插件化架构(plugin architecture) 能够给我们一些启示。