Posts

Showing posts with the label microservices

Microservices in Clojure

Microservices in Clojure I was falling again in the trap. Java with Spring Boot has a very unique appeal... With configuration you can easily solve problems that requires actual code. Service Registration OpenApi Service Discovery Persistence  All these critical things for a micro-service are just some annotations away if you use Spring. But I have to admit that, because I always start thinking that I don't want to risk too much, I always fall back in creating an hybrid Java -Spring/Clojure service, and then I never created a full micro-service in Clojure. This time is different. I will study  Microservices with Clojure . (That I will review as soon as I can, normally I find that these books are not so useful, I hope this time will be different. But I will write about it later. I will follow the book and after I will have completed I will use the same approach for  Hierarchy Property Service using the things I will build during the book study. Because I see that there are...

Spring Boot and Spring Cloud choice in a Clojure micro-service

 Spring Boot and Spring Cloud Ok, I'm back to Clojure. Then why I'm thinking about Spring framework? I'm creating HPS as a POC to restart working in clojure and (why not) as a real service to use in production in my current company. What we need when we deploy a new microservice in our environments is: OpenApi documentation of our service Connection to our Discovery service Interoperability with other services in an easy way, we actually have some native Spring Cloud services, and other services that register in our Discovery Server (Zookeeper) as 'fake' Spring Cloud Services. This gives us the possibility to use Feign to create Clients that are used for communications between our services. Let's see point by point my possible solutions: OpenApi documentation I have 2 possibility: I write my WebService fully using Ring (I don't have any exotic requirement, I think I can do it). But this means that I will have to also write the OpenApi documentation for my AP...