Elysia Tools
Navegación
Mensajería
RocketMQ: ejercicios sintéticos sin conexión
Los ejemplos RocketMQ usan modelos finitos sin conexión para orden por grupo, reintentos y límites temporales.
Ejemplos
Entradas de esta colección
Orden por grupo
Separa cinco pares sintéticos grupo/secuencia conservando el orden dentro de cada lista.
{
"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
Reintentos limitados
Detente en el primer true o tras tres intentos. Evalúa dos listas finitas sin esperar ni enviar.
{
"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
Límite de reloj ficticio
Con due=5 evalúa tiempos inventados 4, 5 y 6 mediante now >= due.
{
"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
Herramientas
Herramientas que suelen usarse con este ejemplo
Relacionado
Colecciones de ejemplos relacionadas
Relacionado