Fastest PHP data transfer
First: Sorry for my English its not my primary language.
I have an appliction that recives requests from clients and then searches for data in the database for presenting results. The application consists of two parts. PART ONE recives the clients requests and then uses cUrl to comunicate with PART TWO which searches for the right result data. What i need to inprove (in terms of speed) is the cUrl part. It was designed that way so if the whole PART TWO is moved to another server the connection between PART ONE and TWO will still work. Thats why PART ONE cant directly access the database. For connecting the PARTS cURl was used uptil now. I tried using SOAP but in terms of speed there is no inprovemend. I found thing like RMI or Cobra but those 开发者_如何学Goare for Java. And we already have a cache in the database to decrese search speed.
And the question: Is there something quckier then cUrl and Soap ? The data send will always be only strings not files.
SOAP will always have the overhead of needing to parse the XML, and likely the creation and destruction of your soap parser, using a simple REST Api with GET or POST variables will likely be slightly faster.
精彩评论