Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Journal Entries model #77

Merged
merged 3 commits into from
Feb 8, 2023
Merged

Conversation

slinkydeveloper
Copy link
Contributor

Fix #64

This PR:

  • Introduces the journal module, with definition of the Entry models and the RawEntry
  • Introduces the service_protocol crate, containing the protobuf from service-protocol repo and the "codec" code to materialize entries

… 239d3f2

git-subtree-dir: src/service_protocol/service-protocol
git-subtree-split: 239d3f29a1f7ce913cea9a14924249b01b82ccc0
@@ -2,7 +2,7 @@

pub mod codec;

pub mod pb {
mod pb {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually there is a reason, testing 😄

But perhaps we could have a feature flag that makes this mod public only when feature "testing" or "mocks" is compiled. Can also do it when we need it, and not prematurely

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed my mind here, we need this public

Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for creating this PR @slinkydeveloper. I think the changes look good to me. I like how we can decode a pb message on demand into the journal model.

I had some comments/questions mostly of minor nature. I guess the main question is whether we want to expose the codec in our RawEntry for the time being or not. My gut feeling is that we might be able to do w/o it until we have a real need for it.

Cargo.toml Show resolved Hide resolved
src/service_protocol/src/lib.rs Outdated Show resolved Hide resolved
src/journal/src/entries.rs Outdated Show resolved Hide resolved
src/journal/src/entries.rs Show resolved Hide resolved
src/journal/src/raw.rs Show resolved Hide resolved
src/service_protocol/src/lib.rs Outdated Show resolved Hide resolved
src/service_protocol/src/lib.rs Show resolved Hide resolved
.github/workflows/ci.yml Outdated Show resolved Hide resolved
src/journal/src/lib.rs Outdated Show resolved Hide resolved
.github/actions/install-protoc/action.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@tillrohrmann tillrohrmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for updating this PR @slinkydeveloper. LGTM. +1 for merging.

src/service_protocol/src/codec.rs Show resolved Hide resolved
Introduce service_protocol crate to host structs from service-protocol protobufs
Implement the entries codec
Add install protoc action
@slinkydeveloper slinkydeveloper merged commit f69b132 into restatedev:main Feb 8, 2023
@slinkydeveloper slinkydeveloper deleted the issues/64 branch February 8, 2023 18:05
slinkydeveloper added a commit to slinkydeveloper/restate that referenced this pull request Mar 21, 2024
…8d559..61ae44b2

61ae44b2 Update documentation on error codes (restatedev#77)
576a1b26 Add HandlerType. Fix restatedev#1092 (restatedev#76)
0624d092 Payload schema for input and output. This provides basic format awareness. (restatedev#74)

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 61ae44b2175c2a54c2d7a138a3368df17f389ebb
slinkydeveloper added a commit to slinkydeveloper/restate that referenced this pull request Mar 26, 2024
…8d559..29b28f98

29b28f98 Modify Input/Output schema in deployment_manifest_schema.json (restatedev#80)
26d91e69 Replace protocol Empty message with custom one, so we remove the dependency on protobuf built-in messages (restatedev#79)
61ae44b2 Update documentation on error codes (restatedev#77)
576a1b26 Add HandlerType. Fix restatedev#1092 (restatedev#76)
0624d092 Payload schema for input and output. This provides basic format awareness. (restatedev#74)

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 29b28f9867734bc01dd47c4666d9d56c90b626f5
slinkydeveloper added a commit to slinkydeveloper/restate that referenced this pull request Mar 26, 2024
…8d559..29b28f98

29b28f98 Modify Input/Output schema in deployment_manifest_schema.json (restatedev#80)
26d91e69 Replace protocol Empty message with custom one, so we remove the dependency on protobuf built-in messages (restatedev#79)
61ae44b2 Update documentation on error codes (restatedev#77)
576a1b26 Add HandlerType. Fix restatedev#1092 (restatedev#76)
0624d092 Payload schema for input and output. This provides basic format awareness. (restatedev#74)

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 29b28f9867734bc01dd47c4666d9d56c90b626f5
slinkydeveloper added a commit that referenced this pull request Mar 26, 2024
…8d559..29b28f98

29b28f98 Modify Input/Output schema in deployment_manifest_schema.json (#80)
26d91e69 Replace protocol Empty message with custom one, so we remove the dependency on protobuf built-in messages (#79)
61ae44b2 Update documentation on error codes (#77)
576a1b26 Add HandlerType. Fix #1092 (#76)
0624d092 Payload schema for input and output. This provides basic format awareness. (#74)

git-subtree-dir: crates/service-protocol/service-protocol
git-subtree-split: 29b28f9867734bc01dd47c4666d9d56c90b626f5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Journal model
2 participants