Hello guys. Is anybody using any sort of “service ...
# general
a
Hello guys. Is anybody using any sort of “service discovery” with SST or SLS? Similar to service-mesh concept, I have a bunch of micro-services and some of them must communicate with each other. Today we store the service-location into SSM or ENV variables, but this doesn’t work with our new deployment model, and also I don’t think it’s effective. On other architecture models like Kubernetes, there are some services like Consul that allows you to build a service-mesh, and I want to have something similar with Serverless model.
j
Curious to hear about this as well.
a
Yeah I been looking and found that AWS has somehting.
Called Cloud Map.
@Jay do you know this?
Or you @Frank.
j
I haven’t used it but from reading some blog posts on this the advantage is that it is serverless and integrates well with the rest of the AWS infrastructure right? Btw, when you say “Today we store the service-location into SSM or ENV variables, but this doesn’t work with our new deployment model, and also I don’t think it’s effective.“; what are some of the issues you are running into?
I have seen some people use SSM this way but I’m curious what issues you ran into.
a
Well, basically I’m using SEED to generate new variable-environments for each PR. Then my API GW URL is different on each deployment, right? So my service-location is different between each PR.
So on SSM I have only the fixed URLs, not the variable URLs.
Or I can update (insert/remove) the locations on SSM every time a new PR is created… but I don’t like it.
I think SSM is not designed to do that… that’s what service discovery is supposed to do.
But well, this is how my architecture is designed today… services locations are stored on SSM… my concern… is which is the best or recommended approach?
j
Yeah that makes sense. SSM is definitely not designed for it. I haven’t gone down this path but Cloud Map does seem pretty promising!
If you get a chance to try it, please share your experience!
a
Yeah looks promising to me, I couldn’t find any example or code using it with SLS or SST just yet.
Yeah for sure, going to investigate it.
That company Peak.ai, seems to have used it with SLS.
a
Interesting, going to check it.
j
Haven’t tried it, just came across it today.
a
Yeah makes sense.
Article from 2019, didn’t know cloud-map existed back then.
How is that nobody knows it? haha.
I don’t know how people solves the issue that I mentioned, that’s what intrigues me.