Elysia Tools
Mobile Navigation
Messaging
RocketMQ: synthetische Offline-Übungen
RocketMQ-Beispiele nutzen begrenzte Offline-Modelle für Gruppenreihenfolge, Wiederholung und Zeitgrenzen.
Beispiele
Einträge in dieser Sammlung
Reihenfolge je Spur
Fünf synthetische Spur/Sequenz-Paare gruppieren und die Eingabereihenfolge je Liste erhalten.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "lanes",
"input": [
[
0,
0
],
[
1,
0
],
[
0,
1
],
[
1,
1
],
[
0,
2
]
],
"rule": "partition toy pairs by lane, preserve encountered sequence",
"expected": {
"0": [
0,
1,
2
],
"1": [
0,
1
]
}
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Begrenzte Wiederholungen
Beim ersten true oder nach drei Versuchen stoppen. Zwei endliche Listen ohne Warten oder Senden prüfen.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "retry",
"maxAttempts": 3,
"outcomes": [
[
false,
false,
true
],
[
false,
false,
false,
true
]
],
"rule": "stop on first true or at maxAttempts; no sleeping or sending",
"expected": [
{
"attempts": 3,
"success": true
},
{
"attempts": 3,
"success": false
}
]
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Künstliche Uhrgrenze
Bei due=5 die erfundenen Zeiten 4, 5 und 6 mit now >= due prüfen.
{
"scope": "explicitly synthetic, offline only; not product SDK configuration",
"fixtureVersion": 1,
"kind": "clock",
"due": 5,
"times": [
4,
5,
6
],
"rule": "ready iff now >= due; invented integer clock, not broker delay levels",
"expected": [
false,
true,
true
]
}- synthetic
- true
- offlineOnly
- true
- sdkIntegration
- false
Werkzeuge
Tools, die oft mit diesem Beispiel genutzt werden
Verwandt
Verwandte Beispielsammlungen
Verwandt