[omaha] Optimize database queries!
Wes Turner
wes.turner at gmail.com
Tue Jan 20 21:53:45 CET 2015
On Tue, Jan 20, 2015 at 1:33 PM, Eric Edens <eric.edens at gmail.com> wrote:
> Redis and memcached? How popular is your blog? :)
>
> Have you considered a static site generator? Any time you update your site
> -- write a new blog post, add a footer link, or whatever -- you re-render
> each page as an HTML file. After that, upload those static files to your
> web server.
>
> This is *extremely* fast, secure, and cheap. Your hosting will only serve
> static files, and you won't have to keep processes running for the Python
> interpreter, the database, or any other caching layers.
>
> I've used Jekyll [http://jekyllrb.com/] in the past, but there are
> definitely others. This one works with Django templates, it seems:
> https://github.com/koenbok/cactus.
>
> If you want fancy dynamic stuff, you can always make async JS calls after
> the page has loaded.
>
Good call.
This [1] is generated with Tinkerer and hosted by GitHub Pages [2], which
is backed by a CDN (Fastly); with HTTPS.
> This blog is created from reStructuredText
<https://en.wikipedia.org/wiki/reStructuredText> sources hosted by GitHub
<https://github.com/westurner/westurner.github.io> which are processed by
Tinkerer <http://www.tinkerer.me/> (source
<https://github.com/vladris/tinkerer>), which extends Sphinx
<https://sphinx-doc.org/> (source <https://bitbucket.org/birkenfeld/sphinx>
, wikipedia <https://en.wikipedia.org/wiki/Sphinx_(documentation_generator)>
).
... Sphinx renders to HTML through Jinja2 templates.
For JS, cdnjs [3] is backed by CloudFlare [4].
CloudFlare has a pretty cool CDN offering that adds an X-Forwarded-For
header with the source IP.
[1] https://westurner.github.io/2013/11/25/hello-world.html
[2] https://pages.github.com/
[3] https://github.com/cdnjs/cdnjs
[4] https://cdnjs.com/
[5] https://www.cloudflare.com/overview
>
> -- Eric
> _______________________________________________
> Omaha Python Users Group mailing list
> Omaha at python.org
> https://mail.python.org/mailman/listinfo/omaha
> http://www.OmahaPython.org
>
More information about the Omaha
mailing list