How to Create Java Services without Spring Bloat

How to Create Java Services without Spring Bloat

How to Create Java Services without Spring Bloat - One of the reasons I like to do small simple services in JavaScript is its lack of overhead and boilerplate.

When you can’t see the forest through the bells and whistles

I have been working on a series of microservices that simulate a used car intake platform and as of now, I have managed to avoid Spring. Spring is a great framework when you need one of everything, but sometimes you just need a simple service and don’t want a 20–30 second start-up time.

One of the reasons I like to do small simple services in JavaScript is its lack of overhead and boilerplate. In the world of microservices, smaller is always better, and I think the reason so many fail at achieving success with microservices is that they’re still building them like they would a monolith. Spring does a great job of connecting all the pieces of your monolith together, but if your service is truly a microservice, there’s just not that much assembly required and Spring is redundant.

Since I’m used to making simple REST-like services in JavaScript, I was pleasantly surprised to find that there is a Java library called Java Express that tries to emulate the JavaScript library Express. One problem with my used car intake platform is it doesn’t yet have an input or output service, so you have to create the input data with a test generator, and you can only confirm that things work by looking at the logs and directly inside the database. This article will be making a simple REST-like input and output service using the Java Express library.

microservices kubernetes spring-boot java

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

50+ Useful Kubernetes Tools for 2020 - Part 2

Our original Kubernetes tool list was so popular that we've curated another great list of tools to help you improve your functionality with the platform.

Minions in Minikube - A Kubernetes Intro for Java Developers

For Java developers unfamiliar with Kubernetes, performing this fun project using Kubernetes, Minikube, and Docker should get you started with a minion army.

How to Use Spring Boot and JHipster With Reactive Java Microservices

Learn how to use Spring Boot and JHipster With Reactive Java Microservices. Create a reactive microservices architecture with Spring Boot, Spring Cloud Gateway, Spring Cloud Config, Spring WebFlux, Java, and JHipster.

Build and Deploy a Spring Boot App on Kubernetes | spring Boot Docker Kubernetes

You will learn how to deploy a Java 11 Spring Boot application on a Kubernetes cluster and how to build and deploy a spring boot application on kubernetes us...

10 Best Java Microservices Courses With Spring Boot and Spring Cloud

In the Java world, Spring provides several tools and frameworks to develop microservices, like Spring Boot and Spring Cloud, and in this article, I’ll share a few good courses you can use to learn how to develop microservices using the Spring framework.