Billing Scenarios

Suppose that you have used seven queues for two hours. During this period, you sent a 256 KB message to each one of the first six queues two million times and a 128 KB message to the seventh queue one million times.

Table 1 Price calculation

Queue

Queue Price

API Call Price

Queues 1–5

0

Number of API calls per queue = (256 KB/64 KB) x 2,000,000 = 8,000,000

Price for the 5 queues: (8,000,000 – 1,000,000)/1,000,000 x ¥2 x 5 = ¥70

Queue 6

¥0.06/queue/hour x 2 hours = ¥0.12

Number of API calls = (256 KB/64 KB) x 2,000,000 = 8,000,000

Price: (8,000,000 – 1,000,000)/1,000,000 x ¥2 = ¥14

Queue 7

¥0.06/queue/hour x 2 hours = ¥0.12

Number of API calls = (128 KB/64 KB) x 1,000,000 = 2,000,000

Price: (2,000,000 – 1,000,000)/1,000,000 x ¥2 = ¥2

Total price

Queue price + API call price = ¥0.12 + ¥0.12 + ¥70 + ¥14 + ¥2 = ¥86.24