Configuration
Protocol
Choose between HTTP or gRPC
Configuration
This choice must be made using the GoFast CLI. Possible options are HTTP
and gRPC
.
Implementation Details
- HTTP implementation will remove all gRPC code, proto files and libraries.
- gRPC implementation uses streams for all queries, and unary for all mutations.
- gRPC implementation will still have some HTTP routes:
- Payments webhook.
- Files functionality. gRPC is just not the best solution to handle file uploads and downloads.
gRPC generation
For gRPC implementation, all proto files are inside the proto
folder. After making any changes, we need to generate new types for both the server and client.
This script will take care of type generation and propagation, but it depends on two libraries, so make sure you have them globally installed:
protoc
proto-loader-gen-types
Need help?
Visit our discord server to ask any questions, make suggestions and give feedback :).