I think that's is really up to you. SpiceDB shines when several bounded contexts are modeled on the schema because it makes interoperability between those possible. On the client side, whether you use a single monolithic service vs services split but bounded context that up to you.
l
ledocteur
04/02/2024, 9:47 AM
Thank you vroldanbet , I appreciate your reply
Yes, the choice of the micro-service design is the responsibility of the architect, not the SpiceDB product itself
I'm torn between the two
On the one hand, there is a decoupling between SpiceDB and the micro-service
It takes more work to code (you need to hide the connection inside the microservice for example )
You can have an app in Java and a microservice in Golang (I did that for a POC)
On the other hand, it's easier to do, but you introduce a strong coupling with your application
And if your app is in Java, you stay in Java
To be or not to be…
https://cdn.discordapp.com/attachments/1222179482153127946/1224656530033475655/micro-serviceOnSPiceDB.jpg?ex=661e4945&is=660bd445&hm=bfa5114923d063d0b5c82dd1d68a6aa6a6638421c445d46e287feb8b7dfc65ed&
v
vroldanbet
04/02/2024, 11:23 AM
Having worked at large engineering organizations, my recommendation is to keep things simple ™️ and only move to microservices when the situation demands it. You spare yourself of quite a headhache. Providing the substrate to run microservices to an engineering organization is a high cost to pay for a small eng organizations, IMHO.
l
ledocteur
04/29/2024, 2:00 PM
Thanks again for your remark. I have summarized the 2 points of view here under Archimate :