>>最近开始做一个j2ee网站,主要是大用户量的图片访问和上传,用Spring和ibatis开源框架搭建,http服务器用apache服务器,应用服务器用jboss,数据库采用oracle10g.
>>其中碰到了几个技术难点,希望大家能给于意见和建议:
>>1,图片这种资源是存储在文件系统中好,还是存储在oracle数据库中好?以性能优先考虑,但不考虑集群。
I believe that never store no-relation data(including nearly all binary data) in relation database. So, supply a path is best.
>>2,提高图片存储效率有什么好的方案?
it's about the I/O condition. I do not know anything about your solution of storage. If it is possible, use NFS is a good choice.
>>3,还有采用缓存策略,哪些数据该被缓存?
What do you want to cache? Data, binary data? or object? or database cache?
If you just want to cache the pictures, I suggest you to try squid.
Apache with jboss is a good idea but maybe you should try NIO mode. If you just need to supply service for picture, ngnix is the second choice against apache.
ps: if you just need spring, maybe you just need a servlet container. jboss web is enough for you.