I have some delphi code which, given the list of elements, calculates the total cost, taking into account any special deals that may apply.
This code is nontrivial for rewriting in another language.
How do I configure it to communicate with a site running on the same server? A website will need to ask for a price each time a user updates their shopping cart. It is possible that there will be several simultaneous requests.
Delphi code must maintain a list of special offers in memory, periodically updated from the database. Therefore, it cannot simply be executed every time or something simple.
I don’t know which website it is written on, or even which http server it is running on, so I'm just looking for ideas or standard methods.
source
share