I have two grails (1.2.1) applications deployed in two different app servers. One app contains the main site (view, controller, domain, etc.) and the other app has a Quartz plugin that performs the core and backend processing. Both app is sharing the Domain classes and same DataSource config. This means that the two app is accessing same database and tables.
My question is: are there any penalty on querying the database?
I'm just noticing some slowness on the main site app if the Quartz job app is running. No clear proof or stats though. Can the hibernate component on each app able to handle concurrency and transactions properly in the some event? Or do I need to configure something in grails-app/conf on each app too? right now, I didn't add extra configuration though.
Thanks.