基于Go构建滴滴核心业务平台的实践

本文详细介绍为什么滴滴选择go以及其在滴滴平台的应用(DUSE 滴滴分单引擎、DOS 滴滴订单系统、DISE schemaless数据存储引擎、DESE severless分布式事务框架)
展开查看详情

1.

2.1 Go In DiDi 2 3 4

3.)(

4.DUSE DOS DISE DESE

5.AB

6.• • • • • •

7.• • • • • if err != nil { return err • } • • • &

8.1 Go In DiDi 2 3 4

9.

10.

11.• • • • • • • •

12. DLTAG Key/Value / TraceId SpanId / /

13. SWAN SRIUS ARIUS APP

14.

15.• • • • • • •

16. struct ReqHead { 1: optional i64 hintCode; thrift 2: optional string hintContent; } POST /didi/v1/just/for/show HTTP/1.1 http Host: 100.69.110.98:8000 HintCode: 0000000 HintContent: {}

17. 1 A A A • 0 A • + • 5 % • A • 1 •

18. Driver Agent Passenger Agent

19.

20.

21./

22.-

23. PHP Server Client Go Server

24. PHP Server Client Proxy Go Server Test Go Server

25.

26. 100% PHP Server 100% Client Proxy 0% 100% Go Server

27. 100% PHP Server 50% Client Proxy 50% 100% Go Server

28. 100% PHP Server 0% Client Proxy 100% 100% Go Server

29.