del.icio.us for hosting

Web programming and Hosting II

January 12, 2008

Following up with this post, James Bennett really does it well.

He explains the problem (the lack of a universally good standard gateway for dynamic languages and webservers), the objective (the change to long-running processes) and the solution (Languages guys and hosting working together to provide a better way for programmers like me to easily deploy stuff to the server and whatever magic is behind to be correctly handled by the hosting guys).

I know that DH guys really want it, now it’s just a matter of fact they can get along with RoR and Django guys to do some real work.

Tagged with: , , ,
This post has 1 comment. Feel free to read it and leave your own.

Web programming and Hosting

January 10, 2008

A little background here: I have worked for a long (maybe too long) time with PHP and for a year now I am doing all my web development with Python with Pungi, my microwebframework. Since my early days at Terràvista I’ve always used shared hosting. It fitted my needs for PHP and MySQL support.

I am still on shared hosting (ideias3 is hosted at dreamhost) and I keep planing to use since it’s way cheaper. I am enjoying Dreamhost, I have all the stuff I want there, (virtually) unlimited storage that I don’t imagine using even 50% of it. It also comes with some goodies such as Jabber and SVN support. Of course I would like a dedicated server, where I could run my own stuff (jabber bots, experimental stuff) and even a git server (yeah, I am planing to move some of my code to git). But I don’t want to afford that, and for running PHP apps, dreamhost is doing fine. I have a bunch of e107s and Wordpresses there. None of them are vital information. If you are looking for a stable hosting forget dreamhost. Has too many downtimes in their machines and runs a bit slow sometimes.

When I built Pungi, I made it in order to work through CGI since it would run (almost) everywhere. Those are my needs! I later implemented a Fast-cgi MVC way of running it (inspired a bit by web.py, Django and Nuno’s dispatcher) but I went through hell to get it working. Buzzwords is the only project that runs it. I’m back with CGI, I know it’s slow but I don’t feel it. Since I only use it for simple applications (that’s the target of pungi) it runs fine without any trouble.

I’ve set up Django in my Leopard and it was pretty easy and I know it’s possible to run django applications on Dreamhost but they don’t offially support it. Even web.py is too troublesome to install. So I’m sticking to old CGI with pungi for my websites. I know it’s sad, but it’s what runs smoothly in my shared hosting.

We also have a bunch of Rails applications running in Dreamhost, Sérgio’s blog, TwitterNotes and some projects still in dev stage. Once in a while the application stops and we need to manually reset the fast-cgi process. I say “we”, but it’s all Sérgio’s work, since he is the Ruby on Rails guy here. Well, there is a post on DreamHost official blog in which the lack of shared hosting support in Rails is a real problem. I agree: Rails will never be the next PHP if they can’t support it. John Gruber explains that the power of Rails is in being easy to code and not to deploy(as in set up environment and all). You can’t have both.

There are a few PHP MVC frameworks (Symphony, CakePHP and CodeIgniter) that do more than the 20% features of Rails that 80% of programmers use and works almost everywhere. Alhouth I hate PHP for its nasty syntax and language nature and evolution, the modphp for apache is the key for a quietly FTP-upload-only deployment. That and hKit are making me wondering if I should get back to do some PHP5 stuff again.

Tagged with: , , ,
This post has 5 comments. Feel free to read them and leave your own.

Leveraging AWS for cheap and reliable hosting

September 03, 2007

Já no final do dia, numa apresentação para os poucos resistentes, o Tiago Macedo, da WeBreakStuff falou-nos um pouco dos serviços da Amazon. A história surgiu quando a Amazon descobriu que tinha um enorme datacenter Tier 1 sem estar ocupado, então desenvolver um plano para o por a render. O que temos de momento são estes dois serviços: o EC2 e o S3. Começando pelo último é um sistema de alojamento de ficheiros por buckets ilimitado e pago por cada pedido. O Carlos da WaveWeb partilhou connosco que reduziu os custos do alojamento de fotos de 300 euros mensais para quase nada.

Relativamente ao EC2, é um sistema de virtual machine on demand baseado no sistema Xen Hipervision. No entanto uma coisa de notar é que as máquinas não têm memória persistente, pelo que sempre que reiniciam, perdem tudo o que têm no disco de 160gigas. Neste caso é necessário usar o S3 para alojar os backups, mas não há alteração de custos pois o tráfego entre o EC2 e o S3 é grátis.

De facto o S3 é uma solução muito barata, mas o EC2 pode tornar-se um pouco mais cara, pois de momento é necessário ter alguém a administrar as máquinas ou então contratar um um serviço que inclua administração como o Tiago referiu. No entanto é uma boa solução para serviços que tenham uma variação muito grande de utilização.

Foi esta a última apresentação do BarCamp e mais uma vez queria agradecer à organização, aos patrocinadores, a toda a malta que teve a coragem de se levantar e fazer uma apresentação. A todos os que lá estiveram, têm aí em cima o meu contacto e tenho a certeza que há milhares de assuntos em que podemos trocar ideias. Quanto aos que não foram e estão a ler as minhas reviews, considerem clicar ali no “Buy me a drink” ;)

This post has 1 comment. Feel free to read it and leave your own.

About

I used to write in this blog, but I've found a better format to express myself. From now on, you may read my writings on ideas, programming and politics on my new wiki.

hCard

Name: Alcides Fonseca
Email:
MSN:
Gtalk:
Nov 24, 1988 40.197958, -8.408312

Tagcloud

Archives

Other links