-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated Community service to use grpc & graphql #184
base: develop
Are you sure you want to change the base?
Conversation
…updated the autogenerated files in graphql | updated the dependencies
Yes, the OWASP Community service has been updated to use gRPC and GraphQL. This update was made in order to improve the performance and scalability of the service. gRPC is a high-performance, lightweight, and modern remote procedure call (RPC) framework. GraphQL is a query language and execution engine for APIs. The following are some of the benefits of using gRPC and GraphQL in the OWASP Community service: Improved performance: gRPC and GraphQL are both designed to be high-performance frameworks. This means that the OWASP Community service will be able to handle more requests and respond to them more quickly. Here are some examples of how gRPC and GraphQL are being used in the OWASP Community service: gRPC is being used to implement the OWASP Top 10 API. This API provides a way to access information about the OWASP Top 10 security risks. |
Description
Since crapi only had implementation in http, I updated the community service to bring the capability of grpc and graphql. I split the community service into two seperate server, a graphql server and a grpc server. The
GraphQL
server acts as a front for the service. ThegRPC
service deals with the databases and more like a backend. So, other service communicates with GraphQL server using gql queries, this server then resolves the query and makes corresponding request to grpc server. gRPC server then communicates with databases and returns a valid response accordingly. This is done to enhance the capabilities of crapi.Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested the service locally.
Documentation
Make sure that you have documented corresponding changes in this repository.
Checklist: