Replying to @brankopetric00
Use EC2 Auto Scaling Groups for horizontal scaling.
Use CloudFront CDN for caching with VPC origins via an internal load balancer.
Use Redis to cache expensive DB reads and DB read replicas.
For writes, use an SQS queue for handling bursts.
820
Replying to @brankopetric00
Monolith on ECS should be a good starting point. Revisit EKS if there is an absolute need for it. Saving money is crucial for a startup in the early stage.
1
274
CodeHiRise retweeted
Replying to @JeremyDeceuster
Yep, that works as a lightweight local guardrail. It makes Socket Firewall the default path for everyday installs.
For macOS/Linux users, the equivalent in zsh/bash would be:
alias npm="sfw npm"
alias yarn="sfw yarn"
alias pnpm="sfw pnpm"
alias pip="sfw pip"
alias uv="sfw uv"
alias cargo="sfw cargo"
Day 7 of 7 cloud best practices that can save your production launch 👇
7/7
Tag your cloud resources early.
Every resource should have tags like:
• Environment
• Service name
• Owner
• Cost center
Untagged infrastructure becomes impossible to track as systems grow.
#devops
28
Try using iac tools like Terraform/Pulumi for your next project.
@HashiCorp @PulumiCorp
#terraform #pulumi
33
That’s how cloud environments turn into unmanageable snowflakes.
With Infrastructure as Code everything is version controlled and reproducible down to the exact state.
This makes environment provisioning and management far more predictable.
1
23
Day 6 of 7 cloud best practices that can save your production launch 👇
6/7
Use Infrastructure as Code from day one.
Manual cloud changes feel fast early on
Until nobody remembers:
• What changed
• Who changed it
• Why it changed
#terraform #iac #cloud #devops #aws
1
47
@npmjs colab with @SocketSecurity
45
Replying to @tan_stack @TansTack
At this point i think its better to scan every package version by npmjs before publishing.
1
2,128
These values should live in configs, secrets managers, or environment variables not inside your codebase. This will make sure we can easily swap them without costly database backfills.
#cloud #devops #software #development #aws
40
Day 5 of 7 cloud best practices that can save your production launch 👇
5/7
Never hardcode environment-specific values into your application.
Things like:
• Bucket names
• Queue URLs
• Regions
• API endpoints
• Database hosts
1
28
But do not run critical customer-facing systems or stateful apps like databases on infrastructure that can disappear with little warning.
Before using Spot ask:
“What happens if this server vanishes in 30 seconds?”
Cheap infrastructure becomes very expensive during outages.
22
Day 4 of 7 cloud best practices that can save your production launch 👇
4/7
Not every workload belongs on Spot instances.
Spot is great for:
• Batch jobs
• Background workers
• Temporary workloads
If interruption is acceptable, Spot can massively reduce cloud costs.
1
22
Randomly changing outbound IPs will eventually break:
• Third-party integrations
• Firewall rules
• Webhooks
• Enterprise whitelisting
Static IPs save a surprising amount of operational pain later.
27
Day 3 of 7 cloud best practices that can save your production launch 👇
3/7
Keep your ingress and egress IPs predictable. These are the main entryways and exits to your environment.
1
39

