I'm going to write a web application for managing and tagging photos and I'd like to ask for advice on choosing suitable platform / framework.
The app will be quite simple from the user's point of view, however, I need some more complex things in the back-end side:
- Rescaling and processing lots of images in a separate / background thread (without blocking the server / HTTP response) with the possibility of interrupting this thread by another HTTP request
- Access to Amazon S3 storage, sending large files via network (also in a background thread)
- Access to PostgreSQL and use complex and maybe slow SQL queries
Also, I prefer some lightweight solution (the more lightweight the better) and the speed isn't so important, but I'm limited by the memory - I will run the app on Linux virtual server with just 512 MB RAM.
I'm most comfortable with Java, but I can code in PHP and Python as well.
Which platform / framework would you suggest me to use?