Jump to content

Microframework

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by 180.151.61.235 (talk) at 13:18, 29 May 2019 (Microframeworks). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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 controller, dispatching the controller, and returning an HTTP response. Microframeworks are often specifically designed for building the APIs for another service or application. [1] For example, Lumen microframework is designed for Microservices development and API development.

Pseudocode example

require "foo.php";

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

Microframeworks

  • 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

References

  1. ^ "Full-Stack Framework or Microframework, Laravel or Lumen?". Retrieved 2016-09-13.