login
Forgot?
Login with Facebook

Don't have an account? Register one now!

Optimization of an HTTP GET

Bids 
4
Avg Bid
$75 USD
CLOSED
  • Project ID:

    467044
  • Project Type:

    Fixed
  • Budget:

    $30-$250 USD

Project Description:

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

http://127.0.0.1/Pricing.php?sender=%p&receiver=%P&time=%t

Pricing.php:
<?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 - !!! dont bid)
d) I suggest you to read http://www.danga.com/memcached/
e) I need the BEST solution for this situation.

Thank you for reading my project,
Bid only if you are experienced.

Skills required:

C Programming, Linux, PHP, SQL, System Admin

Project posted by:

nebula1 United Kingdom
(4 Reviews)

Last seen:

If you are the project creator or one of the bidders, please Log In for more options.


Awarded Bids

jacekphp Poland
jacekphp
Poland From Poland     Gold Member     Offline
  Freelancer Orientation (80%, 97th percentile)
 Accepted
$100 in 1 day 
0
over 2 years ago
5.0

5.4

13 Reviews
70% Completion Rate
hello, please check PM, Regards Jacek

All Bids ()

soniamit India
tirupathibalaji.jpg
soniamit
India From India     Gold Member     Offline
  General Freelancer Orientation (80%, 90th percentile)
$100 in 0 days 
0
over 2 years ago
4.9

6.4

161 Reviews
86% Completion Rate
let starts........ regards soNiamit
MustafaSR India
gaf.jpg
MustafaSR
India From India     Gold Member     Online
  General Freelancer Orientation (80%, 90th percentile)
$50 in 2 days 
0
over 2 years ago
4.7

4.9

31 Reviews
75% Completion Rate
hello, Please check PMB
ahmadkuraisin Indonesia
ahmadkuraisin
Indonesia From Indonesia     Offline
  Foundation EUFreelance.com Member
$50 in 3 days 
0
over 2 years ago
$50 for 3 days