Replies: 8 comments 3 replies
-
I think it will probably be fine until we hit 100 services, then we may need to think further. It just depends on what problem we're trying to fix. At the moment its a very easy to understand structure. |
Beta Was this translation helpful? Give feedback.
-
LOL, it'll be soon ~ |
Beta Was this translation helpful? Give feedback.
-
One thing we should think about is how to quickly generate these CRUD services like contact, note, etc. I think if we can turn everything into a service then it brings high level primitives to the platform as first class citizens. Somebody should not have to program the logic of lists or todos on top of the DB. We should offer them as first class services. But they're effectively all just variations of the same concept with a different name and different proto. So if we could I guess write some sort of generator that would take a proto and write the code or the Go domain and generate based on that it would be good. What do you think? |
Beta Was this translation helpful? Give feedback.
-
I agree with you. I'm inclined to think rather than trying to modify micro new, since its got a lot related to it, we create a new command |
Beta Was this translation helpful? Give feedback.
-
I'm happy to accept it as a contribution if you have experience dealing with proto like that. Otherwise we'll need to look for inspiration from elsewhere. |
Beta Was this translation helpful? Give feedback.
-
One thing I have always imagined is moving to pure Go for the service definition. It always felt off to use proto. It's so tightly coupled to grpc and isn't natively Go. I think there is an opportunity to define services elsewhere and generate a proto from it if needed. This is why I started creating micro.mu files. I think cuelang.org is a good dsl for such a purpose. The question just becomes. How do you define the service. |
Beta Was this translation helpful? Give feedback.
-
I get it, so the micro.mu file is defined to generate entire service, right? That would be awesome. I've learned much from you, thank you very much, I'm going to deep in the cuelang and learn about it. |
Beta Was this translation helpful? Give feedback.
-
Yes the ".mu" file will become central to everything. Much like how in the rails world rack apps had a .ru file. If we're able to process it like a real dsl then it can be really powerful. |
Beta Was this translation helpful? Give feedback.
-
As services count is growing, the directories count is also increasing.
Any idea to deal with it in an elegant way? @asim
Maybe we can flatten directories by different categories.
Beta Was this translation helpful? Give feedback.
All reactions