Jooby framework simplifies Java Web Development Process

Source: Internet
Author: User

Jooby framework simplifies Java Web Development Process

Bkjia.com quick translation]Speaking of Web development, Ruby has the Sinatra framework and Node. js has Express. js. Today, Java also has its own microweb framework, Jooby.

As an achievement developed by Edgar Espina, Jooby provides a modular stateless Application Development Mechanism and can use a variety of NIO (non-blocking IO) servers, including Netty, Jetty, and Undertow.

According to Espina, the core orientation of Jooby lies in "simplification ". "Although Java is a simple and easy-to-learn programming language, using Java to build Web applications is a daunting challenge," he noted in an email. "The Java Community has done a lot of work to simplify the development process of Web applications ...... However, compared with Ruby or Node, it is still difficult to develop Web applications using Java. Jooby emerged to bridge this gap and simplify Web development tasks in the Java environment by providing an objective, simple, and easy-to-learn microweb framework ."

The core of Jooby lies in modules. These modules are built to extract functions from external libraries. "These modules are very streamlined and can be used to guide and configure external libraries in a variety of ways, but they do not bring new abstraction layers or access to library functions through custom APIs. Instead, they can directly extract various library components as they are, "Espina says. "This is the biggest difference between Jooby and other Java Web frameworks ."

Jooby provides a variety of default options to solve typical problems in application development, such as database access, verification, session, template engine, and email. This makes it extremely easy to use, Espina pointed out, "but at the same time, it also has excellent flexibility and modularity, and experienced users can mix and match different modules, so as to meet their actual needs and even write their own integration solutions."

The stateless Application Development Mechanism in Jooby enables it to scale up without causing any significant impact, especially when developers work with the header/JWT (JSON Web Token) when the verification mechanism is used to build a rest api. Of course, in some cases, developers may need to save user information. "For such use cases, you can use HTTP sessions," Espina explained.

Jooby provides a set of In-memory HTTP sessions, but developers can also choose different backends, such as Redis, HazelCast, and MongoDB. This HTTP session is designed to be as concise as possible and requires developers to carefully consider whether to use it, because it only allows matching of the primitive and string types of data.

This framework has two programming modes. The first is the script programming mode, where developers can define an application and write it as a single file. For large and complex applications, Jooby supports MVC. "Here, you can split your application into multiple layers and create one or more controller classes," Espina told us.

Jooby has been available for about 18 months, and its official version 1.0.0 is expected to be released at the beginning of this year. For Java 8 and later versions, Jooby can also collaborate with Nashorn projects, which means we can extend Jooby to the JavaScript development field. "This is a Java framework, so it always runs on JVM. But from the developer's perspective, it can also serve as a JavaScript framework," Espina pointed out, he also plans to gradually add support capabilities for other JVM languages in the future.

Original article title: Jooby framework simplifies Java Web development

Bkjia translation. if the site is reprinted, indicate the original translator and the source is bkjia.com]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.