Hacker News new | ask | show | jobs
by eduardordm 4996 days ago
Very 'interesting' they asking you this. Specially when it looks you are just starting.

I run a credit card company on AWS, our website runs on a single, small aws instance, but the POS/Financial servers are setup this way:

- 8 multi-az oracle rds instances, 4 of them are slaves. It means we have 16 servers where 8 are manually standing by and 8 are on rds multi-az system. The 4 slaves are set to be used to recover from a data tampering event, not aws outages.

- Some dozens of app servers on the same region of each database. We use a custom tcp/ip server I built in java almost a decade ago. We are thinking about migrating to apache Mina.

My personal tips:

- Why are you paying the heroku premium? Build you own aws servers, put nginx and set cheap instances behind it. Let capistrano be your heroku.

- Use some dynamic dns service, I would recommend dynect. Avoid amazon Route 53.

- Use multi-az, set up the same database in another region (continent)

- Get out of us-east

Build the very same setting into another region, create scripts to load the slave country's database if possible.

If your database is too fancy or large:

Shard or distribute.

(Edit) Almost forgot: ALWAYS have fresh as possible, offline backups of everything. Oracle is god when it comes to making this easy.

3 comments

Maybe I've worded this incorrectly, but they're basically saying, "What happens if you get hit by a bus?" My co-founder has access to one of our three projects, but no one else has access to Heroku, GitHub, etc.

Also, the Heroku vs EC2 is another can of worms. Heroku is the better decision for where we are now.

Incorporation agreements must have outlines on how to deal with such events. Other than that, you need someone to replace you in case something happens to you. That person should have the same access and info than you.
Nice answer - but I don't think that's what he was asking. I think the suggestion was that he's got his code secure on external services - so what is there to lose?
eduardordm, nice details you have put there.

Can u please elaborate more on :

"Why are you paying the heroku premium? Build you own aws servers, put nginx and set cheap instances behind it. Let capistrano be your heroku."

Like how does that setup works?