CHAT-SERVER using gRPC Bidirectional Streaming

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Protobuf

    Protocol Buffers - Google's data interchange format

  • and one for the server to client communication ```FromServer``` . The fields in the message are identical in this case though; the `name` is for the user's name and the body is for the user's message. To generate the service interface, we need to define **RPC** methods in the `chat.proto` file. In this example, we have defined only one RPC method i.e.`ChatService`. The `ChatService` method will be called by clients to set up bidirectional gRPC streams between client and server. ### Compile protobuf file `chat.proto` Now that we have our `chat.proto` file is ready. Next step is to compile the `chat.proto` file to generate the compiled `*.pb.go` file with **Interfaces** that we will be using to send and receive messages. Before you proceed, please ensure that you have installed the following in your system, and both **protoc** and **protoc-gen-go** are in system $PATH: > - [protobuf compiler](https://github.com/protocolbuffers/protobuf/releases) > - Golang Protobuf plugin: ```go install google.golang.org/protobuf/cmd/protoc-gen-go``` Now, run the command below in your preferred shell with PWD as your project root directory to generate golang code referring to `chat.proto` file. ```bash $ protoc --go_out=plugins=grpc:chatserver chat.proto

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • gRPC

    The C based gRPC (C++, Python, Ruby, Objective-C, PHP, C#)

  • protobuf compiler, grpc.io

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Golang in Action: How to implement a simple distributed system

    3 projects | dev.to | 25 Oct 2022
  • How does saving work in complex games using Unity?

    3 projects | /r/gamedev | 15 Aug 2022
  • CMake: How to lay out a multiple language project with a common dependency?

    3 projects | /r/cpp_questions | 11 Apr 2021
  • Hitting every branch on the way down

    4 projects | news.ycombinator.com | 29 Apr 2024
  • How to learn to use protoc in 21 easily infuriating steps

    1 project | news.ycombinator.com | 12 Aug 2023