English 中文(简体)
REST 或SOAP 交易量大和大型数据项目
原标题:REST or SOAP for high volume of transactions and large data project

Project Requirements:

我需要建立一个网络服务,接收文本数据库,不管从几个千兆字节到10兆字节,但平均环绕约几百千兆字节。 交易量将很高,我想以认证、SSL和最终某种加密的方式确保服务。

I d like the service to support XML and JSON if possible, and I d like to build it using open source tools - most likely PHP/MySQL.

欢迎就可能的购买力平价框架提出建议。

我已经走上了在PHP和托尼框架中建立REE网络服务的道路,但我认为,我可能只限于我可以张贴在URI中的数据数量,并且将如此多的数据张贴在LURL音响的繁琐中。 因此,我一直在研究SOAP的解决办法。

问题:

我只能把数据数量限制在数据数量上?

《SOAP议定书》是否有数据限制?

你们是否建议我根据项目要求使用SOAP或REST?

最佳回答

无论你是否重新利用REST的建筑或《SOAP议定书》在吉大港定居,吉大港定居地仍然受到限制。

你们的主要限制将是记忆,特别是如果你重新将几个多兆字节的有效载荷纳入主流。 有了足够手提器和符合要求的请求,你可以选择将较小的请求排在一边,只重复,在处理之前直接排在磁盘上。

这种细节可能限制你选择的哪一个框架可以做多少,因为大多数框架可能直接消费。 您是否能够完全改变这一框架,或者根据请求改变这一框架,并有可能改变这一框架。

选择SOAP作为议定书可能无关紧要。 除非你选择将你的电文与SOAP编码编码编码相挂钩,否则该信只是你的有效载荷周围的一个简单的XML信封。

由于你也希望支持JSON,因此,一个SOAP的组装可能只是绕过一个原始的HTTP处理端。

您没有提及您的普审程序的复杂性,但你可能要有一个框架来完成大部分工作,并且只是为大规模、繁重的交易写出一个惯例手。

由于交易本身如此之大,你每秒的交易将很高。 如果你转往软盘,你也会产生巨大的I/O影响(如果你重新转换区域援助团的数据,将其从中删除,而不是从中提取数据的话,你会这样做)。 因此,我/我的投入很可能成为你在限制总体业绩方面的主要瓶颈。

If you re getting uploads from consumers, you ll probably be getting about 150K bytes per second (lots of consumer upload speeds suck -- mine for example). If you have an I/O channel that can push, say, 60MB/sec sustained, that s 400 simultaneous connections. So that should give you an idea of machine scaling based on anticipated transaction volumes (of course, you ve already done this analysis -- I m just making this stuff up as I go). With each transaction uploading 300K, that s 2s per transaction, so 200 TPS. That s another number to play with (in terms of perhaps what your database can sustain, etc. especially if you re going to have several machines feeding it).

Modern CPUs are disgusting, so PHP or whatever should be fine -- that won t be your problem.

问题回答

暂无回答




相关问题
how to represent it in dtd?

I have two element action and guid. guid is a required field when action is add. but when action is del it will not appear in file. How to represent this in dtd ?

.Net application configuration add xml-data

I need to add xml-content to my application configuration file. Is there a way to add it directly to the appSettings section or do I need to implement a configSection? Is it possible to add the xml ...

XStream serializing collections

I have a class structure that I would like to serialize with Xstream. The root class contains a collection of other objects (of varying types). I would like to only serialize part of the objects that ...

MS Word splits words in its XML format

I have a Word 2003 document saved as a XML in WordProcessingML format. It contains few placeholders which will be dynamically replaced by an appropriate content. But, the problem is that Word ...

Merging an XML file with a list of changes

I have two XML files that are generated by another application I have no control over. The first is a settings file, and the second is a list of changes that should be applied to the first. Main ...

How do I check if a node has no siblings?

I have a org.w3c.dom.Node object. I would like to see if it has any other siblings. Here s what I have tried: Node sibling = node.getNextSibling(); if(sibling == null) return true; else ...

Ordering a hash to xml: Rails

I m building an xml document from a hash. The xml attributes need to be in order. How can this be accomplished? hash.to_xml

热门标签