🐝
Mess around software system design
  • README
  • ArchitectureTradeOffAnalysis
    • Estimation
    • Middleware
    • Network
    • Server
    • Storage
  • Conversion cheat sheet
  • Scenarios
    • TinyURL
      • Estimation
      • Flowchart
      • Shortening mechanisms
      • Rest API
      • Performance
      • Storage
      • Follow-up
    • TaskScheduler
      • JDK delay queue
      • Timer based
      • RabbitMQ based
      • Kafka-based fixed delay time
      • Redis-based customized delay time
      • MySQL-based customized delay time
      • Timer TimingWheel
      • Industrial Scheduler
      • Workflow Engine
      • Airflow Arch
    • GoogleDrive
      • Estimation
      • Flowchart
      • Storage
      • Follow-up
    • Youtube
      • Estimation
      • Flowchart
      • Performance
      • Storage
      • Follow-up
      • Netflix
    • Uber
      • Estimation
      • Rest api
      • Flowchart
      • KNN algorithms
      • Geohash-based KNN mechanism
      • Redis implementation
      • Storage
    • Twitter
      • Estimation
      • Flowchart
      • Storage
      • Scalability
      • Follow-up
    • Instant messenger
      • Architecture overview
      • Presence
      • Unread count
      • Notifications
      • Read receipt
      • Large group chat
      • Storage-Offline 1:1 Chat
      • Storage-Offline group chat
      • Storage-Message roaming
      • NonFunc-Realtime
      • NonFunc-Reliability
      • NonFunc-Ordering
      • NonFunc-Security
      • Livecast-LinkedIn
    • Distributed Lock
      • Single machine
      • AP model based
      • CP model based
      • Chubby-TODO
    • Payment system
      • Resilience
      • Consistency
      • Flash sale
    • Key value store
      • Master-slave KV
      • Peer-to-peer KV
      • Distributed cache
  • Time series scenarios
    • Observability
      • TimeSeries data
      • Distributed traces
      • Logs
      • Metrics
      • NonFunc requirments
  • Search engine
    • Typeahead
    • Search engine
    • Distributed crawler
      • Estimation
      • Flowchart
      • Efficiency
      • Robustness
      • Performance
      • Storage
      • Standalone implementation
      • Python Scrapy framework
    • Stream search
  • Big data
    • GFS/HDFS
      • Data flow
      • High availability
      • Consistency
    • Map reduce
    • Big table/Hbase
    • Haystack
    • TopK
    • Stateful stream
    • Lambda architecture
    • storm架构
    • Beam架构
    • Comparing stream frameworks
    • Instagram-[TODO]
  • MicroSvcs
    • Service Registry
      • Flowchart
      • Data model
      • High availability
      • Comparison
      • Implementation
    • Service governance
      • Load balancing
      • Circuit breaker
      • Bulkhead
      • Downgrade
      • Timeout
      • API gateway
      • RateLimiter
        • Config
        • Algorithm comparison
        • Sliding window
        • Industrial impl
    • MicroSvcs_ConfigCenter-[TODO]
    • MicroSvcs_Security
      • Authentication
      • Authorization
      • Privacy
  • Cache
    • Typical topics
      • Expiration algorithm
      • Access patterns
      • Cache penetration
      • Big key
      • Hot key
      • Distributed lock
      • Data consistency
      • High availability
    • Cache_Redis
      • Data structure
      • ACID
      • Performance
      • Availability
      • Cluster
      • Applications
    • Cache_Memcached
  • Message queue
    • Overview
    • Kafka
      • Ordering
      • At least once
      • Message backlog
      • Consumer idempotency
      • High performance
      • Internal leader election
    • MySQL-based msg queue
    • Other msg queues
      • ActiveMQ-TODO
      • RabbitMQ-TODO
      • RocketMQ-TODO
      • Comparison between MQ
  • Traditional DB
    • Index data structure
    • Index categories
    • Lock
    • MVCC
    • Redo & Undo logs
    • Binlog
    • Schema design
    • DB optimization
    • Distributed transactions
    • High availability
    • Scalability
    • DB migration
    • Partition
    • Sharding
      • Sharding strategies
      • Sharding ID generator overview
        • Auto-increment key
        • UUID
        • Snowflake
        • Implement example
      • Cross-shard pagination queries
      • Non-shard key queries
      • Capacity planning
  • Non-Traditional DB
    • NoSQL overview
    • Rum guess
    • Data structure
    • MySQL based key value
    • KeyValueStore
    • ObjectStore
    • ElasticSearch
    • TableStore-[TODO]
    • Time series DB
    • DistributedAcidDatabase-[TODO]
  • Java basics
    • IO
    • Exception handling
  • Java concurrency
    • Overview
      • Synchronized
      • Reentrant lock
      • Concurrent collections
      • CAS
      • Others
    • Codes
      • ThreadLocal
      • ThreadPool
      • ThreadLifeCycle
      • SingletonPattern
      • Future
      • BlockingQueue
      • Counter
      • ConcurrentHashmap
      • DelayedQueue
  • Java JVM
    • Overview
    • Dynamic proxy
    • Class loading
    • Garbage collection
    • Visibility
  • Server
    • Nginx-[TODO]
  • Distributed system theories
    • Elementary school with CAP
    • Consistency
      • Eventual with Gossip
      • Strong with Raft
      • Tunable with Quorum
      • Fault tolerant with BFT-TODO
      • AutoMerge with CRDT
    • Time in distributed system
      • Logical time
      • Physical time
    • DDIA_Studying-[TODO]
  • Protocols
    • ApiDesign
      • REST
      • RPC
    • Websockets
    • Serialization
      • Thrift
      • Avro
    • HTTP
    • HTTPS
    • Netty-TODO
  • Statistical data structure
    • BloomFilter
    • HyperLoglog
    • CountMinSketch
  • DevOps
    • Container_Docker
    • Container_Kubernetes-[TODO]
  • Network components
    • CDN
    • DNS
    • Load balancer
    • Reverse proxy
    • 云中网络-TODO
  • Templates
    • interviewRecord
  • TODO
    • RecommendationSystem-[TODO]
    • SessionServer-[TODO]
    • Disk
    • Unix philosophy and Kafka
    • Bitcoin
    • Design pattern
      • StateMachine
      • Factory
    • Akka
    • GoogleDoc
      • CRDT
Powered by GitBook
On this page
  • Overview
  • Architecture
  • Capacity planning [Todo]
  • Org architecture [Todo]
  • Microservice layers
  • Tech architecture [Todo]
  • Problems
  • Data distribution
  • Data join
  • Breakdown monolithic
  • Service mesh [Todo]
  • Real world
  • Netflix

Was this helpful?

  1. MicroSvcs

Service governance

PreviousImplementationNextLoad balancing

Last updated 1 year ago

Was this helpful?

Overview

  • Rate limit and fallback

    • )

  • Circuit breaker and timeout

Architecture

Capacity planning [Todo]

Org architecture [Todo]

Microservice layers

  • TODO: Microservice challenges

Tech architecture [Todo]

  • Microservices management

Problems

Data distribution

  • Definition: Double write. How to guarantee the ACID of two writes

Use case

  • Data replication

  • Database migration

  • Implement CQRS or remove join from database

  • Implement distributed transactions

Approaches

Transactional outbox

  • Flowchart

  • Implementation: Killbill common queue

CDC (Change data capture)

  • Flowchart

  • Implementation:

    • Alibaba Canal (recommended)

    • Redhat Debezium

    • Zendesk Maxell

    • Airbnb SpinalTap

Data join

Use case

  • N+1 problem

  • Data volume

  • Performance

Approaches

CQRS

  • Flowchart

  • Possible problems: Eventual consistency

  • Possible solutions:

Breakdown monolithic

Definition

  • Velocity slow

  • Hard to continue scale vertically

  • Independent deployment capability

Steps to migration

Key difficult points

  • Understand the APIs

  • Database migration

    • Incremental and rollbackable

    • Data

  • Use data distribution and remove join

Example

  • StichFix - Scaling your architecture with services and events

Service mesh [Todo]

  • Weibo implements service mesh:

Real world

Netflix

  • Netflix Application gateway:

RPC vs message queue based:

Overview:

Istio:

Load shedding at Netflix:

Auto scaling:

Netflix Load balancing:

Netflix failover:

Netflix DDOS simulation:

Netflix Chaos:

Netflix cluster management:

Netflix resource scheduling:

Netflix automated failure testing:

Netflix Chaos monkey:

Netflix open source projects:

知名博主的分布式系列:

Netflix's microservice architecture:

Overview
Architecture
Capacity planning [Todo]
Org architecture [Todo]
Microservice layers
Tech architecture [Todo]
Problems
Data distribution
Data join
Breakdown monolithic
Service mesh [Todo]
Real world
Netflix
https://time.geekbang.org/course/detail/100003901-2278
https://time.geekbang.org/column/article/40908
https://time.geekbang.org/column/article/41297
https://time.geekbang.org/column/article/73368
https://time.geekbang.org/column/article/44118
TODO: Kangwei principle
TODO: when to introduce microservices
TODO: when to breakdown monolithic
TODO: devops, management platform
TODO: how to divide
TODO: servicemesh在复杂环境下的落地
TODO: Alibaba's big Middletier, small front end
TODO: Microservice divides to different layers
https://time.geekbang.org/column/article/13891
https://time.geekbang.org/column/article/14222
Routing architecture
Components
https://time.geekbang.org/course/detail/100003901-2275
https://time.geekbang.org/column/article/18651
https://time.geekbang.org/column/article/41758
https://time.geekbang.org/column/article/65132
https://time.geekbang.org/column/article/67172
https://time.geekbang.org/column/article/67548
https://time.geekbang.org/column/article/67940
https://netflixtechblog.com/keeping-netflix-reliable-using-prioritized-load-shedding-6cc827b02f94
https://netflixtechblog.com/auto-scaling-production-services-on-titus-1f3cd49f5cd7
https://netflixtechblog.com/netflix-edge-load-balancing-695308b5548c
https://netflixtechblog.com/open-sourcing-zuul-2-82ea476cb2b3
https://netflixtechblog.com/zuul-2-the-netflix-journey-to-asynchronous-non-blocking-systems-45947377fb5c
https://netflixtechblog.com/project-nimble-region-evacuation-reimagined-d0d0568254d4
https://netflixtechblog.com/starting-the-avalanche-640e69b14a06
https://netflixtechblog.com/chap-chaos-automation-platform-53e6d528371f
https://netflixtechblog.com/dynomite-manager-managing-dynomite-clusters-dfb6874228e4
https://netflixtechblog.com/distributed-resource-scheduling-with-apache-mesos-32bd9eb4ca38
https://netflixtechblog.com/automated-failure-testing-86c1b8bc841f
https://netflixtechblog.com/netflix-chaos-monkey-upgraded-1d679429be5d
https://netflixtechblog.com/evolution-of-open-source-at-netflix-d05c1c788429
https://www.cnblogs.com/wt645631686/category/1793274.html
https://time.geekbang.org/course/detail/100003901-2269
https://time.geekbang.org/course/detail/100003901-2272
MySQL HA github
MySQL HA github
MySQL HA github
MySQL HA github
MySQL HA github
MySQL HA github