Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Flask
Flask

5.4K
4.4K
+ 1
1.2K
Lumen
Lumen

254
240
+ 1
94
Add tool

Flask vs Lumen: What are the differences?

What is Flask? a microframework for Python based on Werkzeug, Jinja 2 and good intentions. Flask is intended for getting started very quickly and was developed with best intentions in mind.

What is Lumen? The stunningly fast PHP micro-framework by Laravel. Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.

Flask and Lumen can be categorized as "Microframeworks (Backend)" tools.

"Lightweight" is the top reason why over 261 developers like Flask, while over 16 developers mention "API" as the leading cause for choosing Lumen.

Flask and Lumen are both open source tools. It seems that Flask with 45.2K GitHub stars and 12.7K forks on GitHub has more adoption than Lumen with 6.31K GitHub stars and 836 GitHub forks.

Netflix, reddit, and Lyft are some of the popular companies that use Flask, whereas Lumen is used by Geocodio, Next, and Index.co. Flask has a broader approval, being mentioned in 511 company stacks & 531 developers stacks; compared to Lumen, which is listed in 34 company stacks and 25 developer stacks.

What is Flask?

Flask is intended for getting started very quickly and was developed with best intentions in mind.

What is Lumen?

Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Get Advice Icon

Need advice about which tool to choose?Ask the StackShare community!

Why do developers choose Flask?
Why do developers choose Lumen?

Sign up to add, upvote and see more prosMake informed product decisions

    Be the first to leave a con
    What companies use Flask?
    What companies use Lumen?

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Flask?
    What tools integrate with Lumen?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Flask and Lumen?
    Django
    Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
    Tornado
    By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user.
    ExpressJS
    Express is a minimal and flexible node.js web application framework, providing a robust set of features for building single and multi-page, and hybrid web applications.
    Node.js
    Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for data-intensive real-time applications that run across distributed devices.
    React
    Lots of people use React as the V in MVC. Since React makes no assumptions about the rest of your technology stack, it's easy to try it out on a small feature in an existing project.
    See all alternatives
    Decisions about Flask and Lumen
    Y. Taborda
    Y. Taborda
    Full Stack Developer · | 1 upvotes · 80.9K views
    PHP
    PHP
    Lumen
    Lumen
    Yii
    Yii
    Slim
    Slim

    I'm about to start a new project to build a REST API, and I got to this point: Yii2 Vs Lumen Vs Slim, I used Yii 1.1 a while a go and it was awesome, really easy to work with, as a developer you don't have to worry about almost anything, just setup the framework, get your php extensions, and start coding your app.

    But, I was told about performance and someone recomended Lumen or Slim to work with a micro framework and a less bloated framework, what worries me is the lack of advantages that Yii2 offers, ACF and RBAC as a native tool on the framework, gii, the model validations and all the security props already in it.

    Is it worth it? Is the performance so great on those frameworks to leave aside the advantages of a framework like Yii2?

    How do you suggest to make the test to prove wich one is better?

    PHP Lumen Yii Slim

    See more
    Pierre Chapuis
    Pierre Chapuis
    at Pierre Chapuis · | 5 upvotes · 80.8K views
    atChilliChilli
    Flask
    Flask
    Hug
    Hug
    SQLAlchemy
    SQLAlchemy
    Python
    Python
    Gunicorn
    Gunicorn

    Unlike our frontend, we chose Flask, a microframework, for our backend. We use it with Python 3 and Gunicorn.

    One of the reasons was that I have significant experience with this framework. However, it also was a rather straightforward choice given that our backend almost only serves REST APIs, and that most of the work is talking to the database with SQLAlchemy .

    We could have gone with something like Hug but it is kind of early. We might revisit that decision for new services later on.

    See more
    Praveen Mooli
    Praveen Mooli
    Engineering Manager at Taylor and Francis · | 12 upvotes · 547.9K views
    MongoDB Atlas
    MongoDB Atlas
    Java
    Java
    Spring Boot
    Spring Boot
    Node.js
    Node.js
    ExpressJS
    ExpressJS
    Python
    Python
    Flask
    Flask
    Amazon Kinesis
    Amazon Kinesis
    Amazon Kinesis Firehose
    Amazon Kinesis Firehose
    Amazon SNS
    Amazon SNS
    Amazon SQS
    Amazon SQS
    AWS Lambda
    AWS Lambda
    Angular 2
    Angular 2
    RxJS
    RxJS
    GitHub
    GitHub
    Travis CI
    Travis CI
    Terraform
    Terraform
    Docker
    Docker
    Serverless
    Serverless
    Amazon RDS
    Amazon RDS
    Amazon DynamoDB
    Amazon DynamoDB
    Amazon S3
    Amazon S3
    #Backend
    #Microservices
    #Eventsourcingframework
    #Webapps
    #Devops
    #Data

    We are in the process of building a modern content platform to deliver our content through various channels. We decided to go with Microservices architecture as we wanted scale. Microservice architecture style is an approach to developing an application as a suite of small independently deployable services built around specific business capabilities. You can gain modularity, extensive parallelism and cost-effective scaling by deploying services across many distributed servers. Microservices modularity facilitates independent updates/deployments, and helps to avoid single point of failure, which can help prevent large-scale outages. We also decided to use Event Driven Architecture pattern which is a popular distributed asynchronous architecture pattern used to produce highly scalable applications. The event-driven architecture is made up of highly decoupled, single-purpose event processing components that asynchronously receive and process events.

    To build our #Backend capabilities we decided to use the following: 1. #Microservices - Java with Spring Boot , Node.js with ExpressJS and Python with Flask 2. #Eventsourcingframework - Amazon Kinesis , Amazon Kinesis Firehose , Amazon SNS , Amazon SQS, AWS Lambda 3. #Data - Amazon RDS , Amazon DynamoDB , Amazon S3 , MongoDB Atlas

    To build #Webapps we decided to use Angular 2 with RxJS

    #Devops - GitHub , Travis CI , Terraform , Docker , Serverless

    See more
    Interest over time
    Reviews of Flask and Lumen
    Avatar of mjhea0
    Software Engineer at TestDriven Labs
    Review ofFlaskFlask

    Flask is a light, yet powerful Python web framework perfect for quickly building smaller web applications. It's a "micro-framework" that's easy to learn and simple to use, so it's perfect for those new to web development as well as those looking to rapidly develop a web application.

    How developers use Flask and Lumen
    Avatar of Jack Littleton
    Jack Littleton uses FlaskFlask

    I use Flask for times when I need to create a REST API that interfaces with other Python code, or there is no specific reason why I'd want to use Node.JS. I prefer Flask because of its small learning curve, allowing me to get started coding as quickly as possible

    Avatar of Cloudify
    Cloudify uses FlaskFlask

    This lightweight web framework enables quick REST API development while enabling easy clustering, and the usage of multiple worker processes required to scale the REST API service to meet high volume requirements.

    Avatar of Sail Tactics
    Sail Tactics uses FlaskFlask

    Service to query NOAA weather forecasts data and service to build tidal current forecast maps using AWS EC2 and Geoserver

    Avatar of OnlineCity
    OnlineCity uses FlaskFlask

    Flask drives our APIs, both the Website APIs and the majority of the REST Messaging APIs

    Avatar of jvihrial
    jvihrial uses LumenLumen

    First our BE was pure PHP, then it evolved to Laravel and now we are on Lumen. Superb.

    Avatar of papaver
    papaver uses FlaskFlask

    used flask for a few personal projects. enjoyed its simplicity and ease of use.

    Avatar of thanawatsenawat
    thanawatsenawat uses LumenLumen

    For leaning to Create REST API

    Avatar of Andrei Kun
    Andrei Kun uses LumenLumen

    JSON API Framework

    How much does Flask cost?
    How much does Lumen cost?
    Pricing unavailable
    Pricing unavailable