News for hackers. Stuff that matters.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by arethuza on Wednesday May 24, 2017 @04:52PM (#14413368)
I once had an infrastructure guy who worked in the same company quote me £70K for new hardware to host a single static HTML web page.

£70K of new hardware!

I stuck it on an existing server and nobody noticed though I might have got into trouble with the Change Prevention Board for not using the right form or something...

Edit: He did have a carefully worked out explanation of where the money had to be spent.... which I ignored after hearing "£70K".

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by mabbo on Wednesday May 24, 2017 @05:15PM (#14413526)
Tsk, poor choice on your part. You should have started a side consultancy (get a spouse to own it maybe?) and say that you can do it for a mere £40K.

Then dump the static file on S3, and let the interest from the £40K in your bank account pay for it.

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by WrtCdEvrydy on Wednesday May 24, 2017 @05:51PM (#14413757)
Okay, that sounds pretty cool. S3 can host static HTML files?
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by Luuseens on Wednesday May 24, 2017 @06:26PM (#14413948)
Yes, I host my blog that way:

- Generate static files using Pelican

- Dump the files to S3

- Set up Route53 to point a domain at the bucket

- Set up CloudFront (Amazon's CDN) to sit in front of the S3 bucket, since I found pure S3 to be too slow

Works incredibly well.

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by Pxtl on Wednesday May 24, 2017 @07:44PM (#14414316)
Why use Amazon for static pages? My github page works just fine.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by projektir on Wednesday May 24, 2017 @10:56PM (#14415013)
I believe Amazon is more robust if your website gets hit by a lot of traffic.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by Jack000 on Wednesday May 24, 2017 @11:40PM (#14415163)
keep in mind S3 bandwidth is roughly 20~30x more expensive than a VPS.

I put my photo/video blog on S3 reasoning that it'll handle spikes better. At one point it reached the front page of HN and cost me $450. Afterward I looked at the logs and found that my single $20 linode would have handled it fine...

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by mabbo on Thursday May 25, 2017 @07:34AM (#14416657)
Definitely depends on your requirements. AWS can indeed charge a bit for bandwidth.

But if you're talking about small static websites, AWS gives you an easy interface, Cloudfront, Route53, etc. It's a very easy way to do some very complex things.

You might also look into billing alarms. I've got some simple background jobs that I run on lambda, pulling some files to S3 every hour. It costs me a buck or two a month. But if it ever looks like it might charge me $20, it will alarm and email me.

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by stephenr on Thursday May 25, 2017 @12:55AM (#14415365)
I assume you mean data transfer rather than bandwidth, but an often overlooked factor nonetheless.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by nhatbui on Wednesday May 24, 2017 @07:45PM (#14414317)
How much does all this cost you per month?
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by aaronbrethorst on Wednesday May 24, 2017 @08:04PM (#14414394)
Probably about 10 cents.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by RonInDune on Wednesday May 24, 2017 @06:50PM (#14414055)
For some reason that feels like cheating on a test but it's brilliant nevertheless. I think I'll try it with the 15 local corner shop sites that I'm hosting out of the goodness of my heart. Thanks!
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by venning on Wednesday May 24, 2017 @06:02PM (#14413822)
Yes. Works quite well and can handle quite a bit of load. Some native support within Route 53 helps make setting it up easy.

http://docs.aws.amazon.com/AmazonS3/latest/dev/WebsiteHostin...

http://docs.aws.amazon.com/AmazonS3/latest/user-guide/static...

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by coolgeek on Wednesday May 24, 2017 @08:54PM (#14414616)
> though I might have got into trouble with the Change Prevention Board for not using the right form or something...

The "or something" and "which I ignored" aren't making you look like the reasonable actor in these interactions

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by brokenmachine on Thursday May 25, 2017 @02:39AM (#14415677)
Sounds reasonable to me to save the company £70K. But I'm not a manager, so what would I know.

I doubt it was a mission-critical single static html page.

edit: £70K plus the cost of installation/hardware support/etc/etc.

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by coolgeek on Thursday May 25, 2017 @12:46PM (#14418433)
The poster

  - "ignored ... a carefully worked out explanation"
  - doesn't (or doesn't care enough to) understand the company's established processes ("...or something")
Given that s/he thus didn't (couldn't) relate these in his/her telling of the story, there's at least the possibility that what's missing is less flattering or even completely contradictory to their telling.

Just as we can all point to examples of process absurdity, we can all point to examples of

  - failures because process didn't exist
  - companies with good process
At the very least, from an objective standpoint, the poster's telling of the story reflects poorly on them
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by brokenmachine on Sunday May 28, 2017 @08:07PM (#14436681)
I guess I'm not objective then because the only fact I need is "£70K to host a single static webpage on an internal network".

£70K to host one static webpage is not a good process or "carefully worked out explanation" any way you cut it.

Re:I wrote the SQL query in 5 mins. Why does my engineer say... by mruniverse on Wednesday May 24, 2017 @06:20PM (#14413918)
More likely he just didn't want to do it.
Re:I wrote the SQL query in 5 mins. Why does my engineer say... by brokenmachine on Thursday May 25, 2017 @02:37AM (#14415673)
>Change Prevention Board

Haha, ours is called "Change Management", but they would more correctly be called "Change Prevention", or "Sanity Obstruction".