Suljettu

Upgrade the performance of an HTTP GET

I am using an http get to perform routing and billing.

http://127.0.0.1/[url removed, login to view];receiver=%P&time=%t

[url removed, login to view]:

<?php

$sender = $_GET["sender"];

$receiver = $_GET["receiver"];

if (preg_match('/^39/', $receiver)) {

$smsc_id = 'route_italy';

$price = '0.025';

}

else if (preg_match('/^1/', $receiver)) {

$smsc_id = 'route_usa';

$price = '0.03';

}

else if (preg_match('/^242/', $receiver)) {

$smsc_id = 'route_route3';

$price = '0.025';

}

else {

$smsc_id = 'route_uk';

$price = '0.025';

}

header("price: ".$price);

header("route: ".$smsc_id);

?>

---------------------------------------------------------

The problem i experience, is that i must perform routing and billing via HTTP api and do that EXTREMELY FAST and without expensive resources.

Some data to think of before bidding.

a) The values are static.

b) The values are more than 16.000 ( 16.000 different preg_match)

c) I want to evaluate your suggestion before i choose a supplier. ( If you bid with answers like - i can do it choose me - !!! don't bid)

d) I suggest you to read [url removed, login to view]

e) I need a high quality solution for this situation.

Thank you for reading my project,

Bid only if you are experienced.

Taidot: C-ohjelmointi, Linux, PHP, SQL, Järjestelmänvalvoja

Näytä lisää: http linux, the data supplier, get a supplier, answers.com api, answers com api, _get, linux http, memcached api, i want answers, upgrade php, supplier quality, http://, http, HIGH performance, api supplier, using http, situation, want upgrade, fast performance, sender receiver, price billing, performance problem, using billing, upgrade problem, billing data

About the Employer:
( 4 reviews ) UK, United Kingdom

Projektin tunnus: #467047

11 freelanceria on tarjonnut keskimäärin 127 $ tähän työhön

TakeReal

Please, send me these "16.000 different preg_match" or database with data. I will write special script and publish it on my own server. You will be able to test original script (slow) and my script (fast). Next - you Lisää

100 $ USD 2 päivässä
(1270 arvostelua)
7.5
itamarjp

I am able to fix your problem

250 $ USD 1 päivässä
(86 arvostelua)
5.7
fastphp

lets start now

200 $ USD 6 päivässä
(29 arvostelua)
5.6
typo3coder

Hi if the data is static, so it will come from a text file or csv? Please See PMB, thanks.

96 $ USD 1 päivässä
(3 arvostelua)
4.6
waws

Please check my PM for details.

250 $ USD 9 päivässä
(4 arvostelua)
4.5
savtargm

Please check PM. Thanks.

250 $ USD 5 päivässä
(1 arvostelu)
4.1
deOne

I have an idea how to implement this using Memcache. See PM.

70 $ USD 1 päivässä
(8 arvostelua)
3.5
dmoi

1) send me your data. 2) i will code the script. (10-15 lines, not more) 3) You will test it on my server. (with benchmarks) I'll release the script after payment. (I've been tricked too many times) Regards

50 $ USD 1 päivässä
(3 arvostelua)
1.9
s84xxx4p

I can handle this by using arrays. I should be fast enough for your needs while using (just an estimation) a maximum of 3 to 4 steps to obtain the data.

30 $ USD 0 päivässä
(1 arvostelu)
1.0
HereToHelpYou

For maximum performance, you would use a specific-purpose web server, instead of general-purpose server and a scripting language, such as Apache and PHP. The application would listen directly to the port rather than b Lisää

50 $ USD 3 päivässä
(0 arvostelua)
0.0
hqsoft

With the help of simple modifications the execution time was cut 5-9 times. There can be done a lot more, i can explain it later and there are more many ways to solve your problem, but i need more information for that. Lisää

50 $ USD 1 päivässä
(0 arvostelua)
0.0