Skip to content

Commit

Permalink
New Ingress (#1236)
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper authored Feb 28, 2024
1 parent 8fec49e commit 8ccb834
Show file tree
Hide file tree
Showing 9 changed files with 1,731 additions and 38 deletions.
195 changes: 157 additions & 38 deletions Cargo.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ restate-fs-util = { path = "crates/fs-util" }
restate-futures-util = { path = "crates/futures-util" }
restate-ingress-dispatcher = { path = "crates/ingress-dispatcher" }
restate-ingress-grpc = { path = "crates/ingress-grpc" }
restate-ingress-http = { path = "crates/ingress-http" }
restate-ingress-kafka = { path = "crates/ingress-kafka" }
restate-invoker-api = { path = "crates/invoker-api" }
restate-invoker-impl = { path = "crates/invoker-impl" }
Expand Down
1 change: 1 addition & 0 deletions crates/core/src/task_center_types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ pub enum TaskKind {
RpcServer,
RoleRunner,
SystemService,
Ingress,
PartitionProcessor,
// -- Bifrost Tasks
/// A background task that the system needs for its operation. The task requires a system
Expand Down
65 changes: 65 additions & 0 deletions crates/ingress-http/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[package]
name = "restate-ingress-http"
version.workspace = true
authors.workspace = true
edition.workspace = true
rust-version.workspace = true
license.workspace = true
publish = false

[features]
default = []
options_schema = ["dep:schemars"]

[dependencies]
# Restate
restate-core = { workspace = true }
restate-errors = { workspace = true }
restate-ingress-dispatcher = { workspace = true }
restate-schema-api = { workspace = true, features = ["component"]}
restate-types = { workspace = true }

# Encoding/Decoding
bytes = { workspace = true }
serde = { workspace = true }
serde_json = { workspace = true }

# Futures
futures = { workspace = true }
restate-futures-util = { workspace = true }

# Tokio + Hyper
hyper = { version = "1", features = ["server"] }
tokio = { workspace = true }
http = "1.0"
http-body = "1.0"
http-body-util = "0.1"
hyper-util = { version = "0.1", features = ["http1", "http2", "server"] }

# Tracing
opentelemetry = { workspace = true }
tracing = { workspace = true }
tracing-opentelemetry = { workspace = true }

# Other
anyhow = { workspace = true }
codederror = { workspace = true }
derive_builder = { workspace = true }
metrics = { workspace = true }
schemars = { workspace = true, optional = true }
thiserror = { workspace = true }
uuid = { workspace = true }
urlencoding = "2.1"

[dev-dependencies]
restate-core = { workspace = true, features = ["test-util"] }
restate-ingress-dispatcher = { workspace = true, features = ["mocks"] }
restate-test-util = { workspace = true }
restate-types = { workspace = true, features = ["mocks"] }
restate-schema-api = { workspace = true, features = ["mocks"]}

hyper = { version = "1.0", features = ["full"] }
hyper-util = { version = "0.1", features = ["full"] }

tracing-test = { workspace = true }
tracing-subscriber = { workspace = true }
Loading

0 comments on commit 8ccb834

Please sign in to comment.