Skip to Content
author's profile photo Former Member
Former Member

Shared Objects over all Applikation Servers

Hi all,

I lock for a technique to share data between background jobs. The jobs could run on different application servers, so I guess "shared objects" would not work. Is there any solution to share data in kind of global server independent memory? I know, DataBase could be an option, but exists an other way?

Thanks for your support

Markus

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 26, 2012 at 01:12 PM

    The only way, except using the database, is to use one of the application servers to store the data, and allow access from the other application servers.

    Let's say you've got three app servers - A, B and C. Create a destination for A in SM59. Create an RFC to handle the shared objects that you want, with logic like this:

    If the function module is running on app server A - return the value of the shared object.

    If the function module is running on B or C - call the function module, with DESTINATION A.

    matt

    Add a comment
    10|10000 characters needed characters exceeded

    • I'm not sure what your point is. But, if your instance comprises two application servers - serv01 and serv02, say - there's nothing to stop you creating multiple RFC destinations directly to either server.

      Maybe some special instance setup could stop this, but I've used specific appserver RFC destinations in multiple landscapes.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 25, 2012 at 12:34 PM

    Why are you concerned with which Application Server the process runs on?

    Does your object consumes lot of time and resources? I doubt that. As it is, you are running the program in back ground mode. I hope you are not expecting any real time outputs from the same.

    Focus on code optimization, don't worry about the execution details. (In case of performance Issue).

    In case you really want to execute the program in "multi-run" mode, you can go for Asynchronous RFC calls, but it is too much programming effort, with no guarantee for optimization.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.