Spark Micro Framework
vashitva
21 Jun 2016 06:36 AM
When we think about development using java frameworks, first things that come to our mind are huge frameworks with tedious configuration with a lot of redundant code. Spark reduces these problems very effectively, It is one of the main reasons behind its growth and popularity in the Java Web Development World. INTRODUCTION Recent trend has emerged as Java micro framework. Micro Frameworks provide very powerful and lightweight tools as comparison to massive features of JAVA EE and frameworks like Spring. So, Spark is great for micro framework. Java Spark is a Micro framework that makes building HTTP-based(event RESTful ) APIs and simple web APPs kind of ridiculously easy. It is inspired by Ruby Sinatra. Spark's intention is not to compete with Sinatra, or dozen of clones in different languages(Grafitty, Nancy, Flask, Sammy etc.). Its intention is to be used by Java Developers who want or need to develop in pure Java.Spark focuses on being as simple and straight-forward as possible, without the need for cumbersome(XML) configuration, to enable very fast web application development in pure Java with minimal effort.(It's totally different paradigm when compare to other over use of annotations for accomplishing pretty trivial stuff seen in JAX-RS) Spark doesn't force to configure XML, It has no annotations and requires very less configuration and follows Java 8 lambda syntax. Jetty is embedded web server, which is great. Entities already using Spark
- playlyfe.com
- Apache
- Asana
- despegar.com
- Gosu and every day almost 10000 user using spark
- It Supports for all the cool HTTP verbs(and the other ones too) get, post, put, head, trace, connect, options.
- Request Access and Response configuration(Response Transformation). You can directly transform resopnse into Json form.
- Cookies
- Sessions
- Halting
- Filters
- Redirects
- Exception Mapping
- Freemarker
- Velocity
- Mustache
- Handlebars
- Jade
- Thymeleaf
- Jetbrick
- Pebble
- Water