A microframework is a term used to refer to minimalistic web application frameworks. It is contrasted with full-stack frameworks.

It lacks most of the functionality which is common to expect in a full-fledged web application framework, such as:

Typically, a microframework facilitates receiving an HTTP request, routing the HTTP request to the appropriate function and returning an HTTP response. Microframeworks are often specifically designed for building the APIs for another service or application. For example, Lumen microframework is designed for microservices development and API development.

Pseudocode example

edit
require "foo.php";

foo::get("/hello/{name}", function($name) {
    return "Hello $name!";
});

Microframeworks

edit
  • Bottle for Python
  • Camping for Ruby
  • Express.js for Node.js
  • Falcon[1] for Python
  • Fastify for Node.js
  • Flask for Python
  • Scalatra for Scala
  • Lumen for PHP
  • Slim for PHP
  • Silex for PHP
  • Sinatra for Ruby
  • Spark for Java
  • Jooby for Java
  • Javalin for Java
  • Jodd for Java
  • Helidon for Java
  • Pippo for Java
  • Rapidoid for Java
  • Armeria for Java
  • Akka HTTP for Java
  • Ratpack for Java
  • Ktor for Kotlin
  • Toolatra for Tcl

References

edit
  1. ^ "Falcon | The minimal, fast, and secure web framework for Python". falconframework.org. Retrieved 25 October 2021.

📚 Artikel Terkait di Wikipedia

Flask (web framework)

Flask is a micro web framework written in Python. It is classified as a microframework because it does not require particular tools or libraries. It has no

Laravel

Laravel is a free and open-source PHP-based web framework for building web applications. It was created by Taylor Otwell and intended for the development

Sinatra (software)

Because of much smaller size compared to Ruby on Rails, it is also called microframework. Some notable companies and institutions that use Sinatra include Apple

Symfony

Laravel, which is another full-stack framework, and Silex, which is a microframework. Vogue Paris's website is also built on the Symfony framework Symfony's

TurboGears

has also been providing a "minimal mode" which enables it to act as a microframework for usage in environments where the whole stack is not required nor

Web framework

everyone can customize in similar ways. For example, some popular "microframeworks" such as Ruby's Sinatra (which inspired Express.js) allow for "middleware"

Scalatra

Lift, Play!, and Unfiltered frameworks. Scalatra is an example of a microframework, a web software development framework which attempts to be as minimal

Armin Ronacher

elaborate April fool's joke where he bundled his libraries in a one-file microframework he decided to create the Flask web framework. It went on to become one