HNHacker News
TopNewBestAskShowJobs

ryan_sb

236 karma · joined October 2, 2014

Python developer on the OpenStack project.
submissionscomments
ryan_sb··on Docker isn't serverless
I also was on SEDaily a while back on the same topic http://softwareengineeringdaily.com/2016/06/20/serverless-co...
ryan_sb··on Get SSL Expiration Alerts with AWS Lambda and CloudWatch
No reason it can't check any hostname, but all my custom SSL certs are on CloudFront.
ryan_sb··on Ask HN: What are the alternatives to Amazon Lambda?
Not quite, they announced it would exist: "This feature will be available later this year." (from the post).

But when it is available, it'll be a huge step ahead.

ryan_sb··on Ask HN: What are the alternatives to Amazon Lambda?
There's a warmup time when a function is first executed in a container that can be up to 2 seconds depending on what libraries you include (you pay for this time [1]). After the first execution, your function environment will stay "warm" for 10-15 minutes and it will only take 10-150ms to execute your function on a new event.

The other big downside is every time your function goes "cold" you pay the cost of all the extra (anything not in standard lib, ImageMagick, or the AWS Nodejs SDK) libraries you need.

The upside is that you only pay for the time your code actually runs. I've replaced a cronjob server and saved ~90% on the bill to run my jobs. Mostly they were scheduled backups and other misc integrity checks on AWS and 3rd-party infra, so nothing that intense.

More limits/downsides: http://serverlesscode.com/post/aws-lambda-limitations/

1: the cost for 2 seconds of execution time on a 512-MB execution environment is 0.00001668 USD, so it's not likely to break the bank. If you have a high-traffic function it's likely to stay "warm" pretty much all the time. And if your function is low-traffic, it's likely you fit inside the free tier.

ryan_sb··on Ask HN: What are the alternatives to Amazon Lambda?
+1 one of the draws for Lambda is that it has easy integration with other AWS tools (Kinesis, DynamoDB, SNS, even CloudFormation) and is really low-cost since you only pay for execution time.
ryan_sb··on Optimizing Python – A Case Study
True, but in this particular case, the cost to time going (temporarily) backwards would only be connecting to a potentially-suboptimal disque node, and that would be remedied after the subjective-machine-time caught up with the previous subjective time.
ryan_sb··on Optimizing Python – A Case Study
Python makes it easy to do lots of things -- including very inefficient ones. Profiling your existing stuff and trying to optimize in pure Python often gets you pretty far.
ryan_sb··on Optimizing Python – A Case Study
Tbh, the order in that list wasn't meant to be sorted by difficulty, but I can go back and swap that around.
ryan_sb··on Python Tips and Traps
I don't know how I've missed out on contextlib all this time. I'll update that section.
ryan_sb··on Python Tips and Traps
Totally true, I'll add that in
ryan_sb··on Python Tips and Traps
Thanks for correcting me, I'll get those updated ASAP.
ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
Even for advanced queries (ok, not super advanced) SQLAlchemy can hold its own, especially if you're willing to dip into the sqlalchemy.core modules.
ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
Even for building a mobile backend, having a framework can help. Tools like Cornice (Pyramid), Django REST framework, and Flask-REST can make building API's much easier.
ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
> Pick what your team can be most productive with

Absolutely. If you already know one and like it, go forth and hack. If you're not sure, or don't like the one you have, there are tons of great options. Not just Flask/Django/Pyramid either. Tornado, Bottle, CherryPy, Falcon, and more all have dedicated users (some more than others).

ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
For some things ORM's get in the way, but avoiding them by your own data layer sounds like a pretty big time-suck.

Being able to write a single line of SQLAlchemy to build relationships into your models seems way simpler than implementing relationships in a custom data layer.

ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
It's not targeted specifically for hackathons, but cookiecutter-flask[1] is a skeleton project for the cookiecutter[2] project creator.

[1]: https://github.com/sloria/cookiecutter-flask

[2]: https://github.com/audreyr/cookiecutter

ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
FWIW it's 4th the list of frameworks in the article, Flask/Django/Pyramid being the top 3.
ryan_sb··on Choosing a Web Framework: Django, Flask, or Pyramid
Yeah, paster is awesome, esp since there's so many great skeletons on PyPi already.