开发者

Implement Database(MySQL) in a Restlet application

开发者 https://www.devze.com 2023-03-03 03:49 出处:网络
I\'m building a restlet webservice with lots of connections(1000 users) from the clients to a MySQL database.

I'm building a restlet webservice with lots of connections(1000 users) from the clients to a MySQL database.

  1. Should I use a framework like Hibernate to handle data(I figure I could hack out what i need using JDBC)?

  2. 开发者_如何学JAVA

    What are the memory issues i should be considering(what exactly should i be able to do in memory and what should't i do)?

  3. Any good tutorial on using Restlets and MySQL?

Thanks in advance


Here are my 2 cents of advice

1) Hiberate+ehcache to avoid hitting the database too often would be the way to go

2) Use ehcache and configure it properly depending on your application needs, it is a very flexible framework

3) I never used restlet but I used RESTEasy from jboss that was very well documented and well suited for my rest needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消