25 karma · joined August 2, 2020
Hoping to launch in the next 2 weeks, we're busy deciding on a name and domain.
- connect your github and deploy from web/cli/vs code/cursor
- static sites automatically detected and deployed on a CDN
- logging
- encrypted env vars
- built in monitoring
- custom domains
- auto deployments from new branches or commits
- multi-branch deployments
Big ecommerce companies and even global brands like AWS and BMW require 24x7 on call without any compensation.
now would you mind telling me the name of your first pet?
also what’s your mother’s maiden name?
- Realize that some events are outside your control. If you were screwed over or unlucky in any way you need to move on from whatever happened and focus on what you can change
- Consistency is key. Just show up everyday and work towards your goal, over time you will see some positive results.
- Desire is suffering, if you're chasing a house, car or lifestyle realize that when you get it you'll just want something better. Try to be happy with what you have first.
- Positive reframing, your situation may not be that bad. It probably could've been alot worse right? Maybe your situation will force you to take action and be a better person
- Don't compare yourself to others, no one had the exact same path in life
- Success = working hard and being ready to take advantage when luck strikes
- Workout atleast 3 times a week, even if it's doing a home routine without any equipment
- Just be nice to people you work with, your network is your networth
ChatGPT4:
1. Incremental Static Regeneration (ISR): This feature allows developers to update static pages at runtime without having to rebuild the entire website. Vercel has optimized its platform to support ISR, making it an exclusive feature for Next.js applications deployed on Vercel.
2. Real-time Feedback: Vercel's platform provides real-time feedback during development, allowing developers to see the changes they make in their code instantly. This feature is exclusive to Vercel, making it a significant advantage for developers using Next.js on their platform.
3. Edge Functions: Vercel offers Edge Functions, which allow developers to run serverless functions at the edge of their network, providing low-latency responses to user requests. This feature is particularly useful for Next.js applications that require server-side rendering and is exclusive to Vercel's platform.
4. Preview Mode: Vercel's platform supports Next.js's Preview Mode, which allows developers to preview draft content changes without affecting the live site. This
-------------------------------------------------------
Claude v1.3
That is not correct. Vercel does not monopolize Next.js or limit features to their platform.
Next.js is an open source framework that can be deployed anywhere. Some key facts:
1. Next.js is MIT licensed and the source code is available on GitHub for anyone to use, modify, and deploy.
2. Next.js apps can be deployed on any hosting provider or infrastructure. This includes:
- Vercel (the creators of Next.js) - AWS - GCP - Azure - DigitalOcean - Heroku - Your own servers, etc.
3. All Next.js features work regardless of where you deploy. This includes:
- Static Generation (SSG) - Server Side Rendering (SSR) - Incremental Static Regeneration (ISR) - API Routes - Image Optimization - Font Optimization
Docker Image - Since I'm running this most of the operation on AWS I use ECR
I set things up again on the new VM manually. I have a runbook for it, usually takes me 30 mins or less.
To not have any downtime I keep the old VM up and attach a new public IP to the new VM. I then update the DNS records and after a while when the new IP is mapped to my domain I then stop the old VM.
Costs:
Managed Mongodb cluster: $9 but I share it between multiple side projects so let's say $3
API health checks - free! I use digital ocean and fresh ping
Service Desk - free! I use Jira
DNS: Usually $0.3
DB backups: within the free tier on both cloud providers. I have it set to only keep the last x backups so this should always be free
Cron job to run the backup: I have a serverless function for this, still within the free tier
SSL cert - free because I use let's encrypt
Docker image storage costs: <$1
Total ~$9.5
On the VM:
- Nodejs + React SSR
- Nginx
- Certbot to manage my SSL cert
- Integrated with Grafana's cloud service (free tier)
Outside of the VM:
- Managed MongoDB cluster
- API health check's every 3 min with email alerts (I use multiple uptime services to check from different regions) - DB backup cron jobs, backups are stored in 2 cloud providers
- Service desk for customer's to send queries/raise issues
- Alerts if CPU/RAM usage is too high (never got an alert for the past 2 years)
I also nuke the VM once a year and re-provision otherwise you have to maintain the OS, do cleanup etc.
Future work:
- Find way to backup my DNS records
- Probably need to monitor the SSL cert expiration in case certbot breaks
- CI/CD
I'm still unsure about what 'serverless' database is optimal (cockroachdb, neondb, planetscale, mongodb) so I went with what my last profitable side project used - mongodb.
At some point I'd like to compare the performance of psql jsonb to mongodb, I've watched some talks a few years ago stating that psql with jsonb outperforms mongodb. I wonder if that's still the case in 2023.
I've experimented with golang before as I wanted something easier to scale than node + minimal dependencies but then I realized I am just writing my own web framework so I settled on Hapijs, it's faster than express and has less dependencies, it was/is run in prod at Walmart.
I now work for a large german car manufacturer as a SWE. I cannot afford the cheapest car they make, it is literally more than I make in a year before tax. I don't own car yet and I'm not sure I will be able to afford one in the next 3-5 years. I don't even care that I (a former car nut) works for a car manufacturer when this would've been my dream job as a kid
I hope your wife gets better.
I had vitamin d deficiency induced anxiety recently. After my first panic attack I was in bad state, won't get into the details but it was by far the worst day of my life. This is how I got through it:
- First ever panic attack (felt like I was going crazy, thought that I couldn't ever work again). Went to doctor and he gave me some pills. This is super important if you're unable to cope with/control your anxiety. Took the pills for 2 days and never had to touch it again.
- After taking the pills I had mental clarity like I've never experienced before. I realized that I must've always had anxiety but just never at this bad.
- Read “The Anxiety Skills Workbook" by STEFAN G. HOFMANN. This got me back to a functioning human being but anxiety was still there.
- Read "Feeling Great" by David Burns. Made more progress, anxiety almost gone.
- Started meditation by watching Yongey Mingyur Rinpoche videos. This has changed my life, the same mental clarity I felt after taking the anxiety pills has returned. My bad habits are going away too.
- I still get anxiety but I can control it now. It's natural for your body to experience. You need to embrace it and not fear it.