I need to store binary data gathered via HTTP very fast.
I have a client sending data via HTTP to a server that stores the stuff into a database table. Ingredients: Java 1.5, Tomcat 5.5, Hibernate 3.0, SQL Server, jTDS JDBC drivers.
I do not want the clients to wait, so I'm detaching any business logic and just queuing up the stuff for later processing.
How can I make the data storing more efficient?
Do I gain some time:
- using different versions (es. "use tomcat 6" or "use Java 7")?
- changing configurations (es. "disable debug mode in Tomcat" or "use the -Dblazingfast" Java option)?
- swapping components (es "use JBoss, not Tomcat")?
- using different programming tecniques (es. "use while loops instead of for loops")
Shall I use a cache as ehcache? Shall I ditch Hibernate and use JDBC? Is there anything configurable enough that I can use instead of my custom servlet?
Thanks in advance, any hint appreciated.