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
173 | 173 |
interact with it. ``ttl`` is the TTL that was set on the message when it was
|
174 | 174 |
posted. The message expires after (ttl - age) seconds. ``age`` is the number
|
175 | 175 |
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.
|
177 | 178 |
|
178 | 179 |
|
179 | 180 |
|
|
267 | 268 |
it. ``ttl`` is the TTL that was set on the message when it was posted. The
|
268 | 269 |
message expires after (ttl - age) seconds. ``age`` is the number of seconds
|
269 | 270 |
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.
|
271 | 273 |
|
272 | 274 |
|
273 | 275 |
|
5 | 5 |
},
|
6 | 6 |
"age": 239,
|
7 | 7 |
"href": "/v2/queues/demoqueue/messages/51db6f78c508f17ddc924357?claim_id=51db7067821e727dc24df754",
|
8 | |
"ttl": 300
|
|
8 |
"ttl": 300,
|
|
9 |
"checksum": "MD5:82eb2714b7c0237d373947c046cac78d"
|
9 | 10 |
}
|
10 | 11 |
]
|
11 | 12 |
}
|
6 | 6 |
"age": 1110,
|
7 | 7 |
"href": "/v2/queues/beijing/messages/578f0055508f153f256f717f",
|
8 | 8 |
"id": "578f0055508f153f256f717f",
|
9 | |
"ttl": 3600
|
|
9 |
"ttl": 3600,
|
|
10 |
"checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
|
10 | 11 |
}
|
8 | 8 |
"age": 482,
|
9 | 9 |
"href": "/v2/queues/beijing/messages/578edfe6508f153f256f717b",
|
10 | 10 |
"id": "578edfe6508f153f256f717b",
|
11 | |
"ttl": 3600
|
|
11 |
"ttl": 3600,
|
|
12 |
"checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
|
12 | 13 |
},
|
13 | 14 |
{
|
14 | 15 |
"body": {
|
|
19 | 20 |
"age": 456,
|
20 | 21 |
"href": "/v2/queues/beijing/messages/578ee000508f153f256f717d",
|
21 | 22 |
"id": "578ee000508f153f256f717d",
|
22 | |
"ttl": 3600
|
|
23 |
"ttl": 3600,
|
|
24 |
"checksum": "MD5:abf7213555626e29c3cb3e5dc58b3515"
|
23 | 25 |
}
|
24 | 26 |
],
|
25 | 27 |
"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.
|