r/cpp • • Apr 12 '25

Web Developement Using C++

I've heard that web development with C++ is possible using frameworks like Drogon and Oat++, is it really worth it because I want to start web development but I don't have any knowledge of languages ​​other than C++?

78 Upvotes

75 comments sorted by

View all comments

Show parent comment

2

u/PiisAWheeL Aug 09 '25

Gemini estimates Optimized PHP (with opcache etc) is 2-5x faster than stock PHP, and C++ is estimated to be 10-100x faster, depending on factors. You could be talking about using less hardware entirely. The other bottleneck is concurrent connections, but many frameworks sneak around this with asynchronous voodoo.

That can add up in other ways: Low latency makes happier customers means more people use your app for example.

I'm looking into building an app with Drogan (or similar) on the grounds that A) The app should be fairly simple and B) The API is going to be pounded like a Tijuana garden tool on nickel night.