gRPC services are implemented in GeneXus through the API object.
Unlike the REST API, the gRPC API provides greater security and performance, making it ideal for scenarios that require repeatedly sending large volumes of data.
Another case where gRPC can be used is when gRPC is already available in the service and you want to add another service. In that case, due to compatibility reasons or corporate policy, the service should be gRPC.
For more use cases, go to gRPC services.
The implementation process of gRPC services in GeneXus is described in detail in Implementation of gRPC services through the API object, but you should keep in mind the following restrictions:
- Despite the identical syntax, the RestPath and RestMethod annotations do not apply to gRPC.
- The service has a single name in gRPC.
- The call to gRPC services requires native programs declared in GeneXus as external objects.
- REST API and gRPC API have independent implementations.