Codebase list zaqar / f605dd9
The doc of bp support-md5-of-body blueprint: support-md5-of-body Change-Id: I7238971df284f5cd146e3013092b353649cffc6f yangzhenyu authored 6 years ago wangxiyuan committed 6 years ago
5 changed file(s) with 21 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
173173 interact with it. ``ttl`` is the TTL that was set on the message when it was
174174 posted. The message expires after (ttl - age) seconds. ``age`` is the number
175175 of seconds relative to the server's clock. ``body`` is the arbitrary document
176 that was submitted with the original request to post the message.
176 that was submitted with the original request to post the message. ``checksum``
177 is the hash digest of the ``body``, default algorithm is MD5.
177178
178179
179180
267268 it. ``ttl`` is the TTL that was set on the message when it was posted. The
268269 message expires after (ttl - age) seconds. ``age`` is the number of seconds
269270 relative to the server's clock. ``body`` is the arbitrary document that was
270 submitted with the original request to post the message.
271 submitted with the original request to post the message. ``checksum`` is the
272 hash digest of the ``body``, default algorithm is MD5.
271273
272274
273275
55 },
66 "age": 239,
77 "href": "/v2/queues/demoqueue/messages/51db6f78c508f17ddc924357?claim_id=51db7067821e727dc24df754",
8 "ttl": 300
8 "ttl": 300,
9 "checksum": "MD5:82eb2714b7c0237d373947c046cac78d"
910 }
1011 ]
1112 }
66 "age": 1110,
77 "href": "/v2/queues/beijing/messages/578f0055508f153f256f717f",
88 "id": "578f0055508f153f256f717f",
9 "ttl": 3600
9 "ttl": 3600,
10 "checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
1011 }
88 "age": 482,
99 "href": "/v2/queues/beijing/messages/578edfe6508f153f256f717b",
1010 "id": "578edfe6508f153f256f717b",
11 "ttl": 3600
11 "ttl": 3600,
12 "checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
1213 },
1314 {
1415 "body": {
1920 "age": 456,
2021 "href": "/v2/queues/beijing/messages/578ee000508f153f256f717d",
2122 "id": "578ee000508f153f256f717d",
22 "ttl": 3600
23 "ttl": 3600,
24 "checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
2325 }
2426 ],
2527 "links": [
0 ---
1 features:
2 - |
3 Support non-URL encoded message body checksum function, the default algorithm
4 is MD5. Back-end support for MongoDB, Redis and Swift. With this feature, when
5 a user sends a message to the queue, Zaqar calculates a "checksum" value for
6 the body of the non-URL encoded message, which the user can then get after the
7 message is got or claimed. Finally, the user can use it to verify that the
8 body of the newly obtained message is correct.