diff --git a/src/components/DurableExecutionAnimation/index.js b/src/components/DurableExecutionAnimation/index.js index f5485302..8f9b7f9b 100644 --- a/src/components/DurableExecutionAnimation/index.js +++ b/src/components/DurableExecutionAnimation/index.js @@ -374,7 +374,7 @@ class Services extends React.Component { } } -const defaultAnimation = "
HTTP request
addTicket
(Joe, seat2B)
HTTP response
addTicket
{ success }
State

cartService: Joe - cart=[]

Journals

addTicket ( Joe, seat2B )

|||||
|||||
|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you how durable execution takes place in Restate. The animation shows a ticket reservation platform for a theatre, where users can add tickets to their cart. Tickets can only be reserved by a single user. The application consists of two components: the CartObject and the TicketObject.

CartObject
suspended...
invoked...
async function addTicket(ctx, order){\n" +
+const defaultAnimation = "
HTTP request
addTicket
(Joe, seat2B)
HTTP response
addTicket
{ success }
State

cartService: Joe - cart=[]

Journals

addTicket ( Joe, seat2B )

|||||
|||||
|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you how durable execution takes place in Restate. The animation shows a ticket reservation platform for a theatre, where users can add tickets to their cart. Tickets can only be reserved by a single user. The application consists of two components: the CartObject and the TicketObject.

CartObject
suspended...
invoked...
async function addTicket(ctx, order){\n" +
     "  const success = await ctx\n" +
     "    .objectClient(ticketManager, ticketId)\n" +
     "    .reserve();\n" +
diff --git a/src/components/TourAnimation/index.js b/src/components/TourAnimation/index.js
index dd03f86e..a70f5a53 100644
--- a/src/components/TourAnimation/index.js
+++ b/src/components/TourAnimation/index.js
@@ -323,7 +323,7 @@ class Services extends React.Component {
     }
 }
 
-const defaultAnimation = "
HTTP request
addTicket
(Mary, seat2B)
HTTP response
addTicket
{ success }
Journals

addTicket ( Mary, seat2B )

|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you what happened under the hood when we did the reserve call from the `CartObject` to the `TicketObject`. The animation uses the TypeScript SDK.

CartObject[Mary]
suspended...
invoked...
async function addTicket(ctx, ticketId){\n" +
+const defaultAnimation = "
HTTP request
addTicket
(Mary, seat2B)
HTTP response
addTicket
{ success }
Journals

addTicket ( Mary, seat2B )

|||||
|||||
|||||
|||||
RPC: reserve { seat2B }
RPC: response { success }

reserve ( seat2B )

|||||
|||||

This animation shows you what happened under the hood when we did the reserve call from the `CartObject` to the `TicketObject`. The animation uses the TypeScript SDK.

CartObject[Mary]
suspended...
invoked...
async function addTicket(ctx, ticketId){\n" +
     "  const success = await ctx\n" +
     "    .objectClient(ticketObject)\n" +
     "    .reserve(ticketId);\n" +