Building Microservices With Netflix OSS, Apache Kafka, and Spring Boot – Part 2

After Part 1 of this series, here is what comes next:

Although we are not going to use the distributed features of Kafka for the test, it is still a distributed system and is built to use Zookeeper to track the status of its cluster nodes, topics, partitions, etc. So before using Kafka, it is necessary to have Zookeeper installed. The following commands are for installing Zookeeper and Kafka on Ubuntu 16.04. https://goo.gl/SzHN5c #DataIntegration #ML

RESTful JPA One-liners With Rapidoid

ICYDK: Let’s see how easy it is to implement RESTful services with simple JPA CRUD functionality with Rapidoid, the almighty web framework.

Bootstrapping JPA and Implementing RESTful Services

import org.rapidoid.jpa.JPA; import org.rapidoid.setup.App; import org.rapidoid.setup.On; public class JPADemo { public static void main(String[] args) { App.run(args).jpa(); // bootstrap JPA On.get(“/books”).json(() -> JPA.of(Book.class).all()); On.get(“/books/{id}”).json((Long id) -> JPA.get(Book.class, id)); On.post(“/books”).json((Book b) -> JPA.insert(b)); On.put(“/books/{id}”).json((Book b) -> JPA.update(b)); } }

Of course, we also need some JPA entity (which is over-simplified for this demonstration): https://goo.gl/tRoAvD #DataIntegration #ML

A Guide to Code Coverage Tools for C#

I promise that I’ll get to a treatment of code coverage tools in short order.  But first, I want to offer a quick disclaimer and warning.

If you’re here because you’re looking for a way to let management track the team’s code coverage progress, please stop and reconsider your actions.  I’ve written in the past about how code coverage should not be a management concern, and that holds as true now as ever.  Code coverage is a tool that developers should use — not something that should be done to them.  Full stop. https://goo.gl/2Y13rc #DataIntegration #ML