Fork me on GitHub
#ring
<
2023-12-25
>
Can08:12:47

Hello, I would like to start learning about microservices. I'm wondering if there's any working template project available to get started, specifically, one for microservices using Clojure and Ring. I want to understand the basics and see how it works.

seancorfield17:12:27

"Microservice" is a technology-neutral architectural pattern for systems. A "project template" doesn't really make sense. I don't understand what you are asking for here...

Can09:12:41

I mean a basic application used Ring to build microservices. The application 2-3 frontend pages with some buttons. I'm eager to explore and understand the usage of microservices in this context and experiment with them. I haven't worked extensively with microservices before, and now, as I delve into Clojure, I need to learn backend development as well. Hence, I'm looking for a starting point. I hope I can explained myself, I am not an experienced developer.

seancorfield16:12:22

If you're building microservices, pretty much everything is going to be an API on the backend so compojure-api or reitit might be good places to start. Ring is pretty much a given for all web-related projects in Clojure (although with some choices, Ring is brought in as a transitive dependency so you don't even need to think about it). That said, if you're new to backend development, working through the Ring docs/tutorials and then maybe the Compojure docs/tutorials to get a feel for how handlers and middleware work would be a good thing to begin with. But you can learn about microservices as an architectural approach independent of the language -- they seem orthogonal concerns to me.

Can07:12:14

Thank you for the advice, I started following the ring docs first and created some API's, and I continue.