DEV Community

rajanpatil
rajanpatil

Posted on

Introducing FARM Stack - FastAPI, React, and MongoDB

When they got programming Technologies, the LAMP (Linux, Apache, MySQL, PHP) stack—and its variations—ruled supreme. They used WAMP at work, DAMP at home, and deployed there customers to SAMP. But now all the stacks with memorable acronyms seem to be very JavaScript forward. MEAN (MongoDB, Express, Angular, Node.js), MERN (MongoDB, Express, React, Node.js), MEVN (MongoDB, Express, Vue, Node.js), JAM (JavaScript, APIs, Markup), and so on.

As much as they enjoy working with React and Vue, Python is still my favourite language for building back end web services. They wanted the same benefits , they got from MERN—MongoDB, speed, flexibility, minimal boilerplate—but with Python instead of Node.js. With that in mind, they want to introduce the FARM stack; FastAPI, React, and MongoDB.

What is FastAPI?
The FARM stack is in many ways very similar to MERN. They've kept MongoDB and React, but we've replaced the Node.js and Express back end with Python and FastAPI. FastAPI is a modern, high-performance, Python 3.6+ web framework. As far as web frameworks go, it's incredibly new. The earliest git commit they could find is from December 5th, 2018, but it is a rising star in the Python community. It is already used in production by the likes of Microsoft, Uber, and Netflix.

And it is speedy. Benchmarks show that it's not as fast as golang's chi or fasthttp, but it's faster than all the other Python frameworks tested and beats out most of the Node.js ones too.

Getting Started
If you would like to give the FARM stack a try, They have created an example TODO application you can clone from GitHub.

Latest comments (1)

Collapse
 
vikasukani profile image
Vikas Ukani

Nice a little introduction about FARM Stack.

I thought this is complete learning tutorials about FARM Stack developer...

But, It nice to start with...
Liked...