Better HN
topnewbestaskshowjobs
Log inSign up

dsgrillo

53 karma · joined Oct 27, 2016 (10y ago) · 31 submissions

Submissions

1.

Architect is a team activity, not a person(medium.com ↗)

2 points · by dsgrillo · 4y ago · discuss

comment 4y ago · link · parent

Happened with me when buying a nvm-e samsung evo 970 (if I'm not mistaken). I was getting a full new PC and only opened the ssd box after all components arrived, two weeks after receiving it.

I opened a ticket with amazon explaining what happened, got a call from their support to confirm that the violated box was the product one and not the carrier one, and then got reimbursed by the end of the same day.

comment 4y ago · link · parent

During the week I'm not shutting down my Mac, only putting it to sleep. Thus, in the morning, Slack (and all the other stuff I was working) is already open so it's easy to jump back doing whatever I was doing yesterday.

Each day varies... Usually, early in the morning is the least crowded time to deploy stuff, and when I'm mostly doing mine (we're doing Trunk-based development). Other than that, is the best time for doing code reviews before the daily meetings begin. Then there are meetings, incidents to follow up, interviews to conduct, features to implement and so on.

comment 4y ago · link · parent

datadog

5.

Testing microservices, the sane way(copyconstruct.medium.com ↗)

1 points · by dsgrillo · 4y ago · discuss

comment 4y ago · link · parent

It depends on how much you can invest (time and money) vs the risk for your business.

I have 2 projects running a similar setup as yours: everything on a single machine. So far, running since 2014 without any large issues with both of them.

Once, I got locked out of the provider (due to my fault, but it doesn't matter). They've kept the server running, even though I couldn't ssh to the machines. I was ready to redeploy everything on another provider in less than 1 hour, with a DB backup of the day prior of the incident.

If my DB crashes, get corrupts, etc. I have a couple of backup for the last day, week and month, all saved in a different provider.

Thus, in short, I don't think the managed DB really worth for me. I also don't have HA, but I can cope with that. I'd rather get beefier machines for the extra price.

comment 5y ago · link · parent

Thanks for your advice and for the links!

What would be the advantage of setting up something (either a company or a sole trader)?

I wanna have the least amount of work in those "administration tasks", but I'm also afraid that it can bite me in a future. Do you have an idea of when is the proper time for caring in those tasks? After 1 customer? 10? Or maybe is related to the MRR?

Right now, the system should be stable (with tested backups) and the only bad thing that comes to my mind is not being paid. I'm totally fine if it happens and will worry about only if/when happens.

Am I being naive?

comment 5y ago · link · parent

Hey, thanks for your suggestion!

Although it got me thinking, what's the worst thing that can happen if I have no contract at all?

9.

Ask HN: I've got my first paying customer. Now what?

9 points · by dsgrillo · 5y ago · 7 comments

comment 5y ago · link · parent

In my case I'm dumping + zipping the entire database at the application level. In my case is as simple as adding a library [1], scheduling the job and transferring to AWS S3 (my main application is on DigitalOcean)

[1] https://github.com/spatie/laravel-backup

comment 5y ago · link · parent

You bring up good points, fair enough.

I might being naive here, still:

   - losing customer data: the backup must be done frequently enough. So I'm not risking losing data.
   - downtime: I'd expect that RDS could still go south as well, maybe less frequently, but still. In my case I start another VM, run again the container and apply the backup.
   - data breaches: Of course one can misconfigure something here, but not sure how it'd be different using a managed database. 

Regarding the cost, I know that there are companies spending hundreds of $$ on their infra, but it just baffles me for most use cases. I still feel that one can get really far with just a budget of 50$/month.

comment 5y ago · link · parent

My experience says to backup to a different vendor.

comment 5y ago · link · parent

> Don't: manage your own DBs for production. [...]

Why, though?

If you're really on a low budget, the extra $$ for a managed DB doesn't really pay for itself. I'd rather prefer spinning up a container running whatever DB I need and run daily backups to an external vendor.

In my case, the website is free, living on ads revenue, so every penny counts.

comment 5y ago · link · parent

If you have any migration, you probably want to rollback them as well

comment 5y ago · link · parent

I have currently 2 projects with some traffic (5k req/day) running in production.

Both have a similar setup:

   - 1 droplet with docker pre-installed from DigitalOcean
   - clone directly the repo from github
   - together with the code, I have a folder with a bunch of docker images (caddy, mysql, php, redis, etc.) that I can easily spin up.
   - for any release, I manually ssh, git pull and run the migrations (if any) and manually rebuild any docker image if needed
   - I have daily jobs that dumps and zip the entire DB to S3
   - if I have some deployment that I know will break any functionality during deployment, I warn the users before and accept that downtime.
   - never had to handle a "hard" rollback till now.
I've planned to change this setup for while, but until now, didn't find any reason that justifies the effort.

I spend 20$ (10$ per droplet) + few cents on S3 per month with them.

comment 5y ago · link · parent

10 years of experience.

In my first job had multiple promotions varying from 5% to 50%. The lower ones (5% ~ 10%) were given proactively by my employer and for the bigger one (50%) I've ended up changing position inside the company, after asking for a bigger raise.

I agree with others that it's way more easy to have a substantial increase moving jobs.

17.

USA media distorting medal count to show USA ahead of China(sports.yahoo.com ↗)

2 points · by dsgrillo · 5y ago · 4 comments

comment 5y ago · link · parent

Secretlab TITAN

comment 5y ago · link · parent

This sounds quite interesting!

Any chance you mind sharing that code on GitHub?

comment 5y ago · link · parent

Sending campaign flow would create tens of thousands records on DB. After each record insertion, there was a sleep(0.1) - in place to solve problems related to master/slave setup in other flows - just conditionally disabling the sleep was enough to reduce the procedure time from ~5min to ~30 secs

21.

Denmark suspends use of AstraZeneca Covid vaccine(bbc.com ↗)

3 points · by dsgrillo · 5y ago · discuss

comment 5y ago · link · parent

I have 2:

1. https://www.criarenquete.com.br - an easy and quick way to create a poll and share a link or embed it in your site.

2. https://www.gpebahia.com.br/gpe-pesquisa - a mobile app to collect surveys (with GPS tracking and random audio recording) and a dashboard administration to manage/monitor the surveys and extract data (pivot, frequency tables, etc.)

comment 5y ago · link · parent

1. hacker news

2. news.google.com

3. lichess.org (mostly for doing some puzzles)

4. globo.com

24.

Ask HN: Private Repository on GitHub Leaked?

1 points · by dsgrillo · 5y ago · 1 comment

comment 5y ago · link · parent

I have the exactly same issue with my mom.

I've been trying to avoid to discuss the facts (f.e. about hydroxychloroquine) itself (unlike my siblings), but instead elucidate that spreading misinformation is way easily than before. The important thing is that she doesn't see me as "the other side".

What (I think) worked for me was showing fake news about flat earth 'theory' and compare with what she was reading/sharing.

26.

In TDD, should I add unit tests to refactored code?(softwareengineering.stackexchange.com ↗)

1 points · by dsgrillo · 7y ago · discuss

27.

ANU Quantum Random Number Server(qrng.anu.edu.au ↗)

57 points · by dsgrillo · 7y ago · 9 comments

28.

Show HN: Ninepolls – embed a poll on your website(ninepolls.com ↗)

1 points · by dsgrillo · 8y ago · discuss

29.

Show HN: Ninepolls – create and embed polls on your website(ninepolls.com ↗)

2 points · by dsgrillo · 8y ago · discuss

12