Skip to content

Commit

Permalink
Rename entries to have names closer to the concept names we use every…
Browse files Browse the repository at this point in the history
…where else
  • Loading branch information
slinkydeveloper committed Apr 22, 2024
1 parent 57a9437 commit c8e7891
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions dev/restate/service/protocol.proto
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@ message SleepEntryMessage {
// Completable: Yes
// Fallible: Yes
// Type: 0x0C00 + 1
message InvokeEntryMessage {
message CallEntryMessage {
string service_name = 1;
string method_name = 2;
string handler_name = 2;

bytes parameter = 3;

Expand All @@ -245,9 +245,9 @@ message InvokeEntryMessage {
// Completable: No
// Fallible: Yes
// Type: 0x0C00 + 2
message BackgroundInvokeEntryMessage {
message SendCallEntryMessage {
string service_name = 1;
string method_name = 2;
string handler_name = 2;

bytes parameter = 3;

Expand Down Expand Up @@ -300,7 +300,7 @@ message CompleteAwakeableEntryMessage {
// Fallible: No
// Type: 0x0C00 + 5
// Flag: RequiresRuntimeAck
message SideEffectEntryMessage {
message RunEntryMessage {
oneof result {
bytes value = 14;
dev.restate.service.protocol.Failure failure = 15;
Expand Down
8 changes: 4 additions & 4 deletions service-invocation-protocol.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,20 +305,20 @@ The following tables describe the currently available journal entries. For more
descriptions in [`protocol.proto`](dev/restate/service/protocol.proto).

| Message | Type | Completable | Fallible | Description |
| ------------------------------- | -------- | ----------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|---------------------------------| -------- | ----------- | -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `InputEntryMessage` | `0x0400` | No | No | Carries the invocation input message(s) of the invocation. |
| `GetStateEntryMessage` | `0x0800` | Yes | No | Get the value of a service instance state key. |
| `GetStateKeysEntryMessage` | `0x0804` | Yes | No | Get all the known state keys for this service instance. Note: the completion value for this message is a protobuf of type `GetStateKeysEntryMessage.StateKeys`. |
| `SleepEntryMessage` | `0x0C00` | Yes | No | Initiate a timer that completes after the given time. |
| `InvokeEntryMessage` | `0x0C01` | Yes | Yes | Invoke another Restate service. |
| `CallEntryMessage` | `0x0C01` | Yes | Yes | Invoke another Restate service. |
| `AwakeableEntryMessage` | `0x0C03` | Yes | No | Arbitrary result container which can be completed from another service, given a specific id. See [Awakeable identifier](#awakeable-identifier) for more details. |
| `BackgroundInvokeEntryMessage` | `0x0C02` | No | Yes | Invoke another Restate service at the given time, without waiting for the response. |
| `SendCallEntryMessage` | `0x0C02` | No | Yes | Invoke another Restate service at the given time, without waiting for the response. |
| `CompleteAwakeableEntryMessage` | `0x0C04` | No | Yes | Complete an `Awakeable`, given its id. See [Awakeable identifier](#awakeable-identifier) for more details. |
| `OutputEntryMessage` | `0x0401` | No | No | Carries the invocation output message(s) or terminal failure of the invocation. |
| `SetStateEntryMessage` | `0x0800` | No | No | Set the value of a service instance state key. |
| `ClearStateEntryMessage` | `0x0801` | No | No | Clear the value of a service instance state key. |
| `ClearAllStateEntryMessage` | `0x0802` | No | No | Clear all the values of the service instance state. |
| `SideEffectEntryMessage` | `0x0C05` | No | No | Run non-deterministic user provided code and persist the result. |
| `RunEntryMessage` | `0x0C05` | No | No | Run non-deterministic user provided code and persist the result. |

#### Awakeable identifier

Expand Down

0 comments on commit c8e7891

Please sign in to comment.