cloud
Difference between cloud computing and distributed computing? [closed]
In my mind what defines cloud computing is that the underlying compute resources (storage, processors, RAM, load balancers, etc) of cloud-based services and software are entirely abstracted from the consumer of the software / services. This means that the vendor of cloud based resources is taking responsibility for the performance / reliability / scalability of … Read more
2PC vs Sagas (distributed transactions)
In my understanding (not a big user of 2PC since I consider it limiting): Typically, 2PC is for immediate transactions. Typically, Sagas are for long running transactions. Use cases are obvious afterwards: 2PC can allow you to commit the whole transaction in a request or so, spanning this request across systems and networks. Assuming each … Read more
Single Sign-On in Microservice Architecture
While implementing a microservice architecture at my previous job we decided the best approach was in alignment with #1, Add identity service and authorize service access through it. In our case this was done with tokens. If a request came with an authorization token then we could verify that token with the identity service if … Read more
Cloud Foundry explained
I’m a developer on Cloud Foundry — and yes, Cloud Foundry is indeed a bit nebulous (no pun intended). Hopefully I can help clarify things a bit. Cloud Foundry is a platform as a service, but it needs an infrastructure as a service underneath it. Cloud Foundry supports vSphere, vCloud, OpenStack, and Amazon AWS as … Read more
Docker-compose, conditional statements? (e.g. add volume only if condition)
Poor man’s solution: volumes: ${VARIABLE:-/dev/null}:/app/folder Or: volumes: ${VARIABLE:-/dev/null}:${VARIABLE:-/tmp}/app/folder