We will need 15TB of total storage:īandwidth estimates: For write requests, since we expect 200 new URLs every second, total incoming data for our service will be 100KB per second:įor read requests, since every second we expect ~20K URLs redirections, total outgoing data for our service would be 10MB per second: Let’s assume that each stored object will be approximately 500 bytes (just a ballpark estimate–we will dig into it later). Since we expect to have 500M new URLs every month, the total number of objects we expect to store will be 30 billion:ĥ00 million * 5 years * 12 months = 30 billion Storage estimates: Let’s assume we store every URL shortening request (and associated shortened link) for 5 years. What would be Queries Per Second (QPS) for our system? New URLs shortenings per second:ĥ00 million / (30 days * 24 hours * 3600 seconds) = ~200 URLs/sĬonsidering 100:1 read/write ratio, URLs redirections per second will be: Traffic estimates: Assuming, we will have 500M new URL shortenings per month, with 100:1 read/write ratio, we can expect 50B redirections during the same period: Let’s assume a 100:1 ratio between read and write. There will be lots of redirection requests compared to new URL shortenings.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |