《2017年蘑菇街分布式消息中間件Corgi在多場景下應用架構演進.pdf》由會員分享,可在線閱讀,更多相關《2017年蘑菇街分布式消息中間件Corgi在多場景下應用架構演進.pdf(36頁珍藏版)》請在三個皮匠報告上搜索。
1、?Paxos?Corgi?Corgi?Redis?RabbitMQ?CorgiRedis?RabbitMQ?Corgi?Messaging System?(Always Writable)?Corgi 1.x?master/slave?Corgi 1.x?Corgi 2.x?Gossip?Meta data(topic,group)Checkpoints Transactions Messages Events(produce/consume)?(?)?Everything is a messagePaxos?Why Paxos?leader?(?/?)?(?)?/?(XCom)?Paxos?
2、-?:Partition mod Instances?Paxos?-?Value?message?Paxos?-I/O?WalPaxos?-?Leader?Prepare?(?GC?)RT?1%34%65%3%40%58%1ms2ms 2m3ms4ms 4ms?Latency?30%?Pull or Push?Dynamic Pull/PushPull vs Push?fast/slow consumer?Message Key?-Fast ConsumerEcho Consumer 10 15ms(NO GC)?latency?At-most/least-once Exactly-onceAt-most/latest-onceReplication?at-most-once?Exactly-onceatomic(checkpoint&consume result)latency?-Echo ConsumerTitleValue Axis012.52537.5504W8W12W16W20Wat-least-onceat-most-onceexactly-once(ms)?(?)?Per User/Object Per Queue?-?“?”?