GCP
Pub-Sub
- Is google pub sub guarantee ordering message? No
- Is google pub sub guarantee to be consume? Only guarantee 1 message per subscription
- Guarantee subscription to subscripter? Yes
- DLQ or fail-over support? Have feature called snapshots.
- Max message size? 10 MB
- Duplication? Some duplication may occurred. None in 1 year if you are lucky.
- Data integrity? There is data watermark implement
- Replication? Automatic handle by google
- Latency/How many average time takes from publisher to subscriber? Depend on region. Bit slower than Kafka.
- Check the article how spotify move from Kafka to PubSub
Spanner
- Schema/query/migration must be changed
- Recommended for something critical, high traffic need scalability like order/payment
- Most case is game industry because need to expand to many country