Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Perl or Java Tasks
Lakshmigutti
From performance stand point which technology is to be used for building external tasks?
From my perspective perl is the technology used to build Teamsite engine so its good to go with Perl from execution point of view whereas Java program needs a process to start and to execute - Training instructor strongly said to go with Perl for the above reason.
Find more posts tagged with
Comments
Bill Klish
Depending on the version of TeamSite I might disagree with that statement.
Perl requires a process to be forked for every external task as well, just doesn't have the overheard of spawning a JVM as well. In TeamSite 6.7.x there are URL External Tasks which run in the same JVM as content center, causing no additional processes to be spawned. They will run much faster than the Perl equivalent (depending on what the task is doing obviously).
Bowker
I would also consider:
1) What the external task is going to do? Is it better to do the task(s) in Java or Perl?
2) How many times is it going to be hit. If it runs 1 second in Perl, 1.2 seconds in Java, and it runs 10 times per hour/day/... who cares?
3) Skill set of the developers/support staff.
4) If it would take an hour to get it to work in Perl, but a day in Java (taking #2 into consideration) do it in Perl (for example). Your time is valuable too.
5) Expected life/future possible uses of the code. If it's 'throw-a-way' code, it doesn't matter.
good luck.
Lakshmigutti
Very valuable suggestions...
We are still in the process of acquiring requirements but few things I would like to mention -
1) Scheduled deployment - deploying the files at certain time automatically.
2) Localization workflow tasks
3) Notifications with audit trails
4) DCT Form validations
5) Accessing database to get predefined options and populate in DCT form
Lakshmigutti
Can I get some more information on the Teamsite internal workings?
Teamsite is built using perl and java. Below are my questions -
1) When is perl engine invoked and when is JVM invoked? - Workflow engine, form publisher, Search, etc
2) Is JVM used for XML parsing or is there any other subsystem which is built using java?
3) What technologies are used to build this Teamsite 6.7.1 - java/servlets/xslt/xml etc
4) Which parts of Teamsite is built uisng perl and / or java?