I’ve started a new screencast. In the screencast, I’ll show you how to develop a photostream application. The photostream application has 2 parts
1. Allow users to upload images
2. Push the newly uploaded images (a photostream) to connected clients.
The following is a list of open source projects and technologies that I’m using to write this application
Rather than creating one long screencast, I’ve split it into 3 parts.
The first part – upload service and and Angular client.
The second part – server notification using websocket
The third part – hybrid mobile app to take pictures and uploading them.
Here is the first part
Some points to note about
- I’m using asynchronous Servlet to handle the file upload. This is to improve performance and to better utilize server resources by releasing the request thread when the image file is being persisted. We can resume the request once the file have been saved
- Since this is a simple application, I’ve saved the images directly in the document root. You should use a CMS or something like a GridFS to save your images