Hands-On Microservices with Kotlin

Build smart, efficient, and fast enterprise-grade web implementation of the microservices architecture that can be easily scaled.
Preview in Mapt

Hands-On Microservices with Kotlin

Juan Antonio Medina Iglesias

Build smart, efficient, and fast enterprise-grade web implementation of the microservices architecture that can be easily scaled.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$25.20
RRP $35.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$25.20
$44.99
$29.99 p/m after trial
RRP $35.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 14 Day Trial

Frequently bought together


Hands-On Microservices with Kotlin Book Cover
Hands-On Microservices with Kotlin
$ 35.99
$ 25.20
Mastering Android Development with Kotlin Book Cover
Mastering Android Development with Kotlin
$ 35.99
$ 25.20
Buy 2 for $35.00
Save $36.98
Add to Cart

Book Details

ISBN 139781788471459
Paperback414 pages

Book Description

With Google's inclusion of first-class support for Kotlin in their Android ecosystem, Kotlin's future as a mainstream language is assured. Microservices help design scalable, easy-to-maintain web applications; Kotlin allows us to take advantage of modern idioms to simplify our development and create high-quality services. With 100% interoperability with the JVM, Kotlin makes working with existing Java code easier. Well-known Java systems such as Spring, Jackson, and Reactor have included Kotlin modules to exploit its language features.

This book guides the reader in designing and implementing services, and producing production-ready, testable, lean code that's shorter and simpler than a traditional Java implementation. Reap the benefits of using the reactive paradigm and take advantage of non-blocking techniques to take your services to the next level in terms of industry standards. You will consume NoSQL databases reactively to allow you to create high-throughput microservices. Create cloud-native microservices that can run on a wide range of cloud providers, and monitor them. You will create Docker containers for your microservices and scale them. Finally, you will deploy your microservices in OpenShift Online.

Table of Contents

Chapter 1: Understanding Microservices
What is a microservice?
Microservices principles
Domain-Driven Design
Reactive microservices
Cloud Native microservices
Summary
Chapter 2: Getting Started with Spring Boot 2.0
Creating a Spring Boot application
Spring Boot application structure
Packaging and running a Spring Boot application
Configuring our application
Summary
Chapter 3: Creating RESTful Services
Understanding RestController
Path and request parameters
HTTP verbs and statuses
Working with JSON
Handling errors
Summary
Chapter 4: Creating Reactive Microservices
Understanding Spring WebFlux
Creating reactive services
Using functional web programming
Handling reactive errors
Summary
Chapter 5: Reactive Spring Data
NoSQL databases
Using Spring Data
Reactive repositories
From CRUD to REST
Summary
Chapter 6: Creating Cloud-Native Microservices
Understanding Spring Cloud
Configuration Server
Service discovery
Gateway
Summary
Chapter 7: Creating Dockers
Starting with Docker
Building Dockers with microservices
Publishing Dockers
Summary
Chapter 8: Scaling Microservices
A scalable architecture
Creating a Cloud
Publishing a microservice as a service
Controlling services
Summary
Chapter 9: Testing Spring Microservices
Understanding SpringBootTest
Mocking beans
Fluent tests
Summary
Chapter 10: Monitoring Microservices
Understanding monitoring
SpringBoot Actuator
Java Managing Extensions
Summary
Chapter 11: Deploying Microservices
Setting things up
Building our application
Publishing to OpenShift
Summary
Chapter 12: Best Practices
Using Kotlin idioms
Managing the Spring context
Layering the application
Testing effectively
Handling CI and CD
Summary

What You Will Learn

  • Understand microservice architectures and principles
  • Build microservices in Kotlin using Spring Boot 2.0 and Spring Framework 5.0
  • Create reactive microservices that perform non-blocking operations with Spring WebFlux
  • Use Spring Data to get data reactively from MongoDB
  • Test effectively with JUnit and Kotlin
  • Create cloud-native microservices with Spring Cloud
  • Build and publish Docker images of your microservices
  • Scaling microservices with Docker Swarm
  • Monitor microservices with JMX
  • Deploy microservices in OpenShift Online

Authors

Table of Contents

Chapter 1: Understanding Microservices
What is a microservice?
Microservices principles
Domain-Driven Design
Reactive microservices
Cloud Native microservices
Summary
Chapter 2: Getting Started with Spring Boot 2.0
Creating a Spring Boot application
Spring Boot application structure
Packaging and running a Spring Boot application
Configuring our application
Summary
Chapter 3: Creating RESTful Services
Understanding RestController
Path and request parameters
HTTP verbs and statuses
Working with JSON
Handling errors
Summary
Chapter 4: Creating Reactive Microservices
Understanding Spring WebFlux
Creating reactive services
Using functional web programming
Handling reactive errors
Summary
Chapter 5: Reactive Spring Data
NoSQL databases
Using Spring Data
Reactive repositories
From CRUD to REST
Summary
Chapter 6: Creating Cloud-Native Microservices
Understanding Spring Cloud
Configuration Server
Service discovery
Gateway
Summary
Chapter 7: Creating Dockers
Starting with Docker
Building Dockers with microservices
Publishing Dockers
Summary
Chapter 8: Scaling Microservices
A scalable architecture
Creating a Cloud
Publishing a microservice as a service
Controlling services
Summary
Chapter 9: Testing Spring Microservices
Understanding SpringBootTest
Mocking beans
Fluent tests
Summary
Chapter 10: Monitoring Microservices
Understanding monitoring
SpringBoot Actuator
Java Managing Extensions
Summary
Chapter 11: Deploying Microservices
Setting things up
Building our application
Publishing to OpenShift
Summary
Chapter 12: Best Practices
Using Kotlin idioms
Managing the Spring context
Layering the application
Testing effectively
Handling CI and CD
Summary

Book Details

ISBN 139781788471459
Paperback414 pages
Read More

Read More Reviews

Recommended for You

Mastering Android Development with Kotlin Book Cover
Mastering Android Development with Kotlin
$ 35.99
$ 25.20
Reactive Programming in Kotlin Book Cover
Reactive Programming in Kotlin
$ 35.99
$ 25.20
Microservice Patterns and Best Practices Book Cover
Microservice Patterns and Best Practices
$ 35.99
$ 25.20
Kotlin Programming By Example Book Cover
Kotlin Programming By Example
$ 39.99
$ 28.00
Functional Kotlin Book Cover
Functional Kotlin
$ 39.99
$ 28.00
Kotlin Programming Cookbook Book Cover
Kotlin Programming Cookbook
$ 39.99
$ 28.00