473,386 Members | 1,962 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

middleware, so to speak

I have hit a wall. I have some server side perl scripts. One of those
scripts has to send off to another server (hence the middleware
comment) and wait for a response. Then I need to get back to the
client. I don't know how to do this. I can send off the post to the
external server. And I know how to get the response back in another of
my perl scripts. But how does that script know how to get back to the
client?

Le me diagram and name things.

This is the logic flow

Client -> Me -> XS (external sever)->Me -> Client

Program wise it would be

Client ->Me Script1 -> XS

XS -> Script2 -> Client

I can't see how to get XS to come back to the same instance of
Script1, nor can I see how Script2 would know which client to send to.
I am sure this is easy, something like having a connection handle, but
I don't know what that is called or how to get it. If I had it I can
save it with Script1 and get it back with Script2, I can identify the
transaction from my perspective, but not from the servers. (This is an
Apache server if that matters.)

(I know this is not really a language issue, but I figured this would
be a good place to ask.)

Thanks much in advance.
Jul 19 '05 #1
1 1611
Tiger Hillside wrote:
I have hit a wall. I have some server side perl scripts. One of those
scripts has to send off to another server (hence the middleware
comment) and wait for a response. Then I need to get back to the
client. I don't know how to do this. I can send off the post to the
external server. And I know how to get the response back in another of
my perl scripts. But how does that script know how to get back to the
client?

Le me diagram and name things.

This is the logic flow

Client -> Me -> XS (external sever)->Me -> Client


Thinking of the problem that way will cause problems.
Try this diagram instead.

t=0 Client Middle Backend Server
t=1 ---->
t=2 parse request
t=3 ----->
t=4 perform action
t=5 <-----
t=6 reformat results
t=7 <------
t=8 display

The connection between the client and the middle is kept open while
the middle talks to the backend. When the middle gets the results
back from the backend server, it translates them to html and
presents the results to the client, who has been waiting patiently
all this time.

In some cases, the client can be redirected to a URL that points
to a temporary file on the backend server.

t=9 redirect ------------------------>
t=10 <------------------------ temporary file

-Joe
Jul 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Tom Gugger | last post by:
OMNI GROUP tgugger@buckeye-express.com 419-380-8853 BEA MIDDLEWARE EXPERT/ CONTRACT TO PERM/ PA
0
by: Guy Blanc | last post by:
http://savannah.gnu.org/projects/goldwater Goldwater is a lightweight distributed middleware, delivering high-performance, high-availability and scalability for successful e-business...
13
by: David Eng | last post by:
Finally, the C++ standard committee realizes the importance of middleware and distributed computing. The committee now focus on C++ extensions for ISO CLI, the Microsoft middleware platform. ...
8
by: Dhanvi | last post by:
Hi Everyone, I am working on an application at my workplace that is a classical example of an applciation that would need middleware to connect various applications.. but I was looking for open...
5
by: Calimero | last post by:
I have to write a middleware that could be see as a very specialized Web server (based on threads and sockets) I hesitate between C++ (speed) and C# (more elegant) What is the performance penalty...
2
by: Ale | last post by:
Hi all! I need to build a middleware for XQuery: I mean a software receiving a std xquery and outputting the xquery result on "database.xml". This middleware must use 7 or 8 different choosable...
17
by: IanIpp | last post by:
We have a 3 month old quad processor/dual core server running SQL Server 2005 and already it is getting close to hitting the CPU wall. An 8 way CPU box is prohibitively expensive and out of the...
0
by: richmoore44 | last post by:
Hi, I've just written a python WSGI middleware class to mitigate XSS flaws, it's released under the python license. I've attached the docs below. Cheers Rich.
4
RedSon
by: RedSon | last post by:
I'm doing a bit of bluetooth programming and I am writing some middleware to make developing applications easier. The BT driver is implemented as a simple serial driver so its like OpenFile and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.