0

I've the experience of development of web servers with Go and Python. I knew that there were some web frameworks, such as Beego, Django. I have used Nginx and Beego/Django to develop and deploy some web servers.

For now I'm working in a team, all of teammates have lots of cpp experience. The team have been working with gRpc and bRpc(https://github.com/apache/incubator-brpc) for a long time. Now we have a plan to develop a web server, which provides web server to browsers and mobile apps.

I just want to know if it is possible to use gRpc or bRpc immediately to develop a web server? I've read the example of bRpc(https://github.com/apache/incubator-brpc/blob/master/example/http_c%2B%2B/http_server.cpp), but I'm still not sure if it's a good idea to use bRpc to do so. As we know, the web frameworks, such as Beego and Django, should offer developers some common methods, such as the handlers to process cookies, tokens etc. I'm not sure if gRpc or bRpc have these.

But on the other hand, we want to use gRpc or bRpc to do the development because we are very familar with them. All of us can use both of them to develop the microservice fast.

In a word, my question is: is the following design possible?

browser/mobile ---> nginx ---> gRpc/bRpc

Or if gRpc/bRpc has few of methods to process standard http requests(cookies, token etc), is the following design possible?

browser/mobile ---> nginx ---> (some module of http layer?) ---> gRpc/bRpc
1

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.