by akinjide · 8y ago · 0 comments
So much value that things went wrong and now you're explaining yourself.
If all you're doing is hosting a bunch of VMs on the cloud, what's the point?
Yes, be mindful as a developer I do take a few common sense steps...
1. ElastiCache uses the Memcached protocol so you're really not tying yourself to anything.
2. Lambda - think the "ports and adapters" pattern. Treat your Lambda function as a controller and keep all of your business logic separate.
3. Logging - all of our logging that goes to CloudWatch goes through Serilog. We can switch out the sink easily enough to anything.
4. Simple Queueing System - don't have calls to SQS all over your code, have it in one central module (in our case a Nuget package).
5. Autoscaling - have a shutdown method and wrap the calls that check when your instance is being shut down as events.
6. AWS KMS - We use Hashicorp's Vault and use AWS as a "backend".
7. Cognito - authentication. It's just Middleware for .Net Core that creates a principal before every request. It would be quite easy to add another piece of middleware.
I've been on both sides of that equation - the vendor and the client. When I was working for the vendor, the only way that we were able to secure our biggest deal was to put our entire software stack in escrow -both the proprietary development platform and the system we built for them on top of it. *
As the client, part of the contract was that they had to put their code in escrow.
In both cases, the client was large enough to negotiate those terms. What if you aren't large enough to force those terms?
* That worked out well for me. When the company I worked for went belly up, the client that enforced those terms hired me to complete their system since they had the right to the source code and I was the only person on the planet that was available that knew how both the C based development platform and their implementation worked well enough to complete it.