English 中文(简体)
亚洲开发银行4O网络应用
原标题:web application in DB4O
  • 时间:2011-04-08 19:17:59
  •  标签:
  • asp.net
  • db4o

如果我会开发协会的网络应用。 利用db4o 哪类数据库:当地或偏远地区,以及为什么?

最佳回答

我认为,你指的是“嵌入式”和“客户服务器”(即可操作的两种基本模式)。

你们最可能希望“客户服务器”,以便你能够安排多个客户会议(或许每要求一次)。

关于数据库存放地点的决定取决于您的设想。 理想的情况是,你将设计你的解决办法,以便你能够通过组合做到这一点。 在单一服务器部署的情况下,你能够提供多达40台服务。

然而,如果你需要更多的马力,你就可以在另一个机器的干.40处工作,以分配工作。 请注意,在这种情况下,你将拥有更多的网络管理/附属设施。

问题回答

C/S模式db4o意味着网络通信,并且是循环的。 如果您需要多个客户会议,则不一定需要与C/S联系,因为如果存在一种可同时进行多种交易而不放弃网络通信的embedded模式:

http://developer.db4o.com/documentation/reference/db4o-8.0/java/reference/Content/client-server/embedded.htm

So if your use case allows it you could open an embedded server on the web server side and allow your server side asp.net app to talk to db4o using multiple transactions (eg one per web session) to persist objects. Note that under this scenario you can t persist objects from the client side (the web client talks to the server side of your app which takes care of persistence).

Important: in web scenarios is not uncommon that you close the db4o object container when a session is over. If you do this the object is no longer tracked by db4o and it will be treated as a new one on the next session. You ll have to find a way to reattach objects to its db4o identity on the server side for a different session (you can do that by querying for the object again on the server side).

Best!

德国





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签