Lumen - The stunningly fast micro-framework by Laravel.

Lumen - The stunningly fast micro-framework by Laravel.

 

What is Lumen?

Lumen is a "micro-framework" built on top of Laravel's components, and is the official micro-framework of Laravel. Lumen is built for speed, and is one of the fastest PHP micro-frameworks available - even significantly faster than similar frameworks such as Silex.

However, unlike many other micro-frameworks, Lumen lets you tap into the full power of Laravel's features, such as routing, dependency injection, the Eloquent ORM, migrations, queued jobs, and even scheduled commands.

Laravel is already fast and powerful, but Lumen strips away many of the configuration and customization options that Laravel provides in order to shave every millisecond possible off of your service's load time.

The stunningly fast speed of Lumen, combined with the convenience of Laravel's features gives you a "best of both worlds" micro-framework that is truly a joy to work with.

When Should I Use Lumen?

Lumen is designed to build blazing fast micro-services and APIs. For example, if there is one aspect of your Laravel application that receives drastically more traffic than the rest of the application, you may choose to build that aspect of the application as a small, separate Lumen application.

By reducing the load on your primary Laravel application, you can cut server costs since applications built on Lumen do not require as much server power as a full Laravel application.

Of course, Lumen applications can queue jobs for your main Laravel application to process. Laravel and Lumen are designed to make a perfect team, and, when used together, allow you to build powerful, micro-service driven applications.

Lumen is also a great fit for building fast JSON APIs since these applications do not typically require many "full-stack" features such as HTTP sessions, cookies, and templating.

Lumen Limitations

Lumen is not as configurable as the Laravel framework. For example, it is not possible to override any framework "bootstrappers" to drastically alter how the framework is constructed. Also, unlike Laravel, Lumen is not intended to be used with additional Laravel "packages" such as debug bars, CMS systems, etc.

In addition, Lumen does not use Symfony's Routing component. Instead, /- is used for greater performance. If you need Symfony Routing features such as sub-domain routing or optional parameters, you should use the full Laravel framework.

If you do choose to use the full-stack Laravel framework, do not worry that your application will suffer from poor performance. The full-stack Laravel framework powers many very large, enterprise level applications receiving up to 15,000,000 requests per day.

Lumen Features

Lumen includes many of the same features as the full-stack Laravel framework:

  • Blade Templating
  • Caching
  • Command Scheduler
  • Controllers
  • Eloquent ORM
  • Error Handling
  • Database Abstraction
  • Dependency Injection
  • Logging
  • Queued Jobs

By utilizing a unique bootstrapping process, Lumen is able to provide a robust feature set while still delivering extremely high performance, making it the perfect solution for PHP micro-services.

Reference Link: https://lumen.laravel.com/docs/introduction

Tejas Vadodariya

SALES MANAGER at Star Health and Allied Insurance Co. Ltd

9 年

Nice bro..

回复

要查看或添加评论,请登录

Pratik Butani的更多文章

  • Introducing the Dash T-Shirt Design

    Introducing the Dash T-Shirt Design

    Greetings Flutter Developers! Today, we have an exciting story to share with you about our latest venture into the…

    8 条评论
  • Hackathon - What I learnt in 24 hours?

    Hackathon - What I learnt in 24 hours?

    Hackathon — What I learned in 24 hours? Where can you experience all of these emotions in a 24-hour period: excitement,…

  • Flutter New Learning - Week 1

    Flutter New Learning - Week 1

    Hello #FlutterDev, We are going to share here what we are learning at 7Span every week. In mobile team, we have started…

    4 条评论
  • InstantSaver - Download Reels, Photo, Video from Instagram

    InstantSaver - Download Reels, Photo, Video from Instagram

    Save Reels, Photo, Video from Instagram using InstantSaver App Hope you all know that Instagram has launched new…

  • Laravel 5.1 is released

    Laravel 5.1 is released

    Laravel has just announced the immediate availability of v5.1.

    1 条评论

社区洞察

其他会员也浏览了