Hello ,
im using clean architecture for both Product service gRPC and OrderService gRPC service i have created ocelot.api gateway for fetching the methods for both grpc service at same time (concurrently) using grpc server url without connecting the project to same project or using namespace
i want to call the both methods using url which i configured in ocelot projecct appsettings.json , can you give me brief steps!

Hari PrasathPosted Sep 27, 2024, 11:52 AM
Hello Jayraj Chhaya I have fixed the issue! anyways thanks! if you want to know just ping me up here!
Hari PrasathPosted Sep 3, 2024, 9:46 AM
Thankd for shariing but the issue about configuring the grpc endpoints into ocelot api all the three projects in different solution i wantt to fetch the both services (methods) into ocelot for that i want as aff now i wannt to configure it via grpc endpoints only not ddirect project reference and i have crreated entire working flow in same solution but now i want in different solution For using concurrent method hitting from api gateway to both service methods at a same time.
Jayraj ChhayaPosted Sep 3, 2024, 7:59 AM
To call multiple gRPC services concurrently through Ocelot API Gateway, follow these steps:
Install Required Packages: Ensure you have the necessary NuGet packages installed in your Ocelot project, such as
OcelotandGrpc.Net.Client.Configure Ocelot: In your
ocelot.jsonfile, define the routes for your gRPC services. For example:Update
appsettings.json: Ensure yourappsettings.jsonis configured to include the Ocelot settings.Run Ocelot: Start your Ocelot API Gateway. It will now route requests to the respective gRPC services based on the defined routes.
Test the Endpoints: Use tools like Postman or curl to test the configured endpoints, ensuring that requests to
/api/productand/api/orderare routed correctly to their respective gRPC services.By following these steps, you can effectively call both gRPC services concurrently through the Ocelot API Gateway without needing to connect the projects directly.