Page 1 of 1

Shared Container best practices

Posted: Mon Aug 29, 2016 12:25 pm
by leandrohmvieira
Just curious.
Can someone show me a good example on how to use shared containers in server jobs?
Because i just cant figure out one. Some example where i can use it several times to reduce dev time

Thanks in advance.

Posted: Mon Aug 29, 2016 7:05 pm
by chulett
IMHO they serve two purposes. One is the typical 'reusable code' usage. If you have common business logic that will be used in multiple places, they allow you to have one set of code that everyone can use so the rules are applied correctly in all cases.

Another use is as a local container (not shared) to make jobs more... condensed and readable. Large chunks can be in a container and if someone cares about exactly how the sausage is made they can open up the grinder. :wink:

However, the primary purpose is the whole 'shared' aspect for reusable code.

Posted: Fri Sep 02, 2016 3:58 am
by ray.wurlod
Historically, the most common use for a shared container has been for generic error capture and handling. This has somewhat been overtaken by the new Exceptions stage.

Connections to data sources and targets are also good candidates.

Another use for server shared containers is to introduce server job functionality into parallel jobs.