26 Mar 2016 - by 'Maurits van der Schee'
When we look at web frameworks, then we see that many web frameworks also optimize for execution speed. I'm not sure I understand that as the language in which they are written more or less defines their maximum speed. So performance is not a feature. If a framework performs significantly worse than other frameworks in that language it should be considered a bug. Other than speed they seem mainly concerned with architecture and tests (and these are related). IMHO they should focus on "developer friendliness" and their "LoC to features" ratio (also somewhat related).
As you can read in the title I do not recommend C or C++ for web API programming. I agree with Bjarne Stroustrup (author of C++) that programming in a language that is lacking a memory manager is hard. In C and C++ you have to request and release memory explicitly, so an error is easily made. If you want to go that way, it is interesting to check out kore.io, libmicrohttpd or to write Nginx modules (that can easily be prototyped in Lua). Also, it is recommended that you use tools like ValGrind to find memory leaks.
PS: Liked this article? Please share it on Facebook, Twitter or LinkedIn.