jump to content
Given a web site, which is relatively densely call via AJAX, php scripts. The php scripts use the session is to pay attention to the writing session files as soon as possible to close. Also at php curl to join with other services (eg webszervízekhez written in C #). This service does not always respond quickly, and I will not be treated as the curl-year relationship timeouttal. The question is whether such a situation, the call can cause a lot of the problems. What other points to keep in mind, what techniques could be competing processes them more smoothly? Thank you!
If I understand correctly, the PHP application is actually a proxy to a .NET service. What you have written a function of the level, but since the AJAX requests are in constant contact, it may be due to high load and long answers befullasztják the web server. Therefore suggest the following method: The first call Ajax start a background process from PHP (such as screen-en.). This retrieval process to do it, which can be run indefinitely. This background process and give an account of the state (running, ready, error etc) somewhere in storage facilities (eg. Database PID file etc) and of course the results. The first Ajax request to give the background process ID of the client side and solve a given time interval with the same ID will ask whether the háttérfolyamatod already done. when you're done, you'll get the information if it is not done, continue trying. I used to do it my way. Work in the right way.
Thanks for the comments, I look at php background processes. Otherwise, emo girls a thin layer of php I wanted emo girls to leave as much as possible, but I think that at some level I'll emo girls have conducted due to the above.
Object orientation does really work? - OOP and relational databases incompatibility (3) Why Exceptions Suck - The exception handling emo girls problems (0) asm.js emo girls get support for Internet Explorer - The asm.js closer to each other in the free software community and Microsoft (0) The Scourge of Error Handling - yet there is no really good error handling (5) Visualize Your Code's Quality with PhpMetrics emo girls - PHP our code analysis (0) How we built the new BBC Homepage - how, what technologies made the new BBC homepage (0) Nginx Configuration Snippets - Useful Nginx configuration directives (0) Life in the post-database world: using crypto to avoid DB writes - How to use instead of cryptographic primitives databases (10) Classes in ECMAScript 6 (final semantics) - The final semantics of the ES6 classes (8)
Archive
AJAX Apache security browser CSS CSS3 design Django emo girls Drupal interface Firefox Google HTML HTML5 HTML 5 Internet Explorer JavaScript jQuery framework conference Hungarian PHP PEAR PHP 5, MySQL Python event Safari Wordpress Zend
This page original contact info: http: //weblabor.hu%2Fforumok%2Ftemak%2F113991 content on the Weblabor (HU ISSN 1785-9573) sheets are available under the Creative emo girls Commons Attribution-NonCommercial-ShareAlike emo girls 2.0 license, and must be used. The license can be found at http://creativecommons.org/licenses/by-nc-sa/2.0/.
Given a web site, which is relatively densely call via AJAX, php scripts. The php scripts use the session is to pay attention to the writing session files as soon as possible to close. Also at php curl to join with other services (eg webszervízekhez written in C #). This service does not always respond quickly, and I will not be treated as the curl-year relationship timeouttal. The question is whether such a situation, the call can cause a lot of the problems. What other points to keep in mind, what techniques could be competing processes them more smoothly? Thank you!
If I understand correctly, the PHP application is actually a proxy to a .NET service. What you have written a function of the level, but since the AJAX requests are in constant contact, it may be due to high load and long answers befullasztják the web server. Therefore suggest the following method: The first call Ajax start a background process from PHP (such as screen-en.). This retrieval process to do it, which can be run indefinitely. This background process and give an account of the state (running, ready, error etc) somewhere in storage facilities (eg. Database PID file etc) and of course the results. The first Ajax request to give the background process ID of the client side and solve a given time interval with the same ID will ask whether the háttérfolyamatod already done. when you're done, you'll get the information if it is not done, continue trying. I used to do it my way. Work in the right way.
Thanks for the comments, I look at php background processes. Otherwise, emo girls a thin layer of php I wanted emo girls to leave as much as possible, but I think that at some level I'll emo girls have conducted due to the above.
Object orientation does really work? - OOP and relational databases incompatibility (3) Why Exceptions Suck - The exception handling emo girls problems (0) asm.js emo girls get support for Internet Explorer - The asm.js closer to each other in the free software community and Microsoft (0) The Scourge of Error Handling - yet there is no really good error handling (5) Visualize Your Code's Quality with PhpMetrics emo girls - PHP our code analysis (0) How we built the new BBC Homepage - how, what technologies made the new BBC homepage (0) Nginx Configuration Snippets - Useful Nginx configuration directives (0) Life in the post-database world: using crypto to avoid DB writes - How to use instead of cryptographic primitives databases (10) Classes in ECMAScript 6 (final semantics) - The final semantics of the ES6 classes (8)
Archive
AJAX Apache security browser CSS CSS3 design Django emo girls Drupal interface Firefox Google HTML HTML5 HTML 5 Internet Explorer JavaScript jQuery framework conference Hungarian PHP PEAR PHP 5, MySQL Python event Safari Wordpress Zend
This page original contact info: http: //weblabor.hu%2Fforumok%2Ftemak%2F113991 content on the Weblabor (HU ISSN 1785-9573) sheets are available under the Creative emo girls Commons Attribution-NonCommercial-ShareAlike emo girls 2.0 license, and must be used. The license can be found at http://creativecommons.org/licenses/by-nc-sa/2.0/.
No comments:
Post a Comment