Skip to content

Comments

Feat: Add gRPC support #1

Merged
ichbingautam merged 1 commit intomainfrom
grpc_support_changes
Dec 31, 2025
Merged

Feat: Add gRPC support #1
ichbingautam merged 1 commit intomainfrom
grpc_support_changes

Conversation

@ichbingautam
Copy link
Owner

gRPC Support

Protocol Buffers: Defined service contract in
proto/cache.proto

  • Dual Protocol: The server now listens on both HTTP (:8080) and gRPC (:50051) simultaneously.
  • gRPC Adapter: Implemented a seamless adapter layer that maps gRPC requests to the core raft-consensus service logic.
  • Backward Compatibility
    • Existing HTTP endpoints (/get, /set, /join) continue to function without changes.
    • Data written via HTTP is readable via gRPC and vice versa.

##Usage
Start the server (gRPC listens on default port :50051):

./server -node_id node1 -bootstrap

Run integration verification:

go run scripts/verify_compatibility.go

@ichbingautam ichbingautam changed the title Feat: Add gRPC support (Phase 1) Feat: Add gRPC support Dec 31, 2025
@ichbingautam ichbingautam merged commit 1f08bdc into main Dec 31, 2025
4 checks passed
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.

1 participant