Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Tommy.

Asked: July 16, 2020 - 11:37 am UTC

Last updated: July 24, 2020 - 3:39 am UTC

Version: 19.2

Viewed 1000+ times

You Asked

Our cloud platform is setup as: NGINX (web server) > JBoss(app sever, ORDS) > Oracle(APEX 20.1)
We need to send a lot emails and doing REST API calls from our app.

We can do this either in the app server (linux) or directly from Oracle using pl/sql.

Just wonder what are the pros and cons of these two options?


and Connor said...

Not necessarily pros and cons, but some things to think about

- Where is your expertise? If you have primary APEX expertise, then perhaps keeping the code in the database makes for easier maintenance etc. Conversely, if you already have email routines/infrastructure etc at the Linux tier that you're using extensively, then maybe just add to that.

- Transaction requirement? Do you want to email as part of a transaction? If so, then you really need to doing that in the database

- Any email specific features you get with one option over the other? eg schedule mail times etc etc

- Any infrastructure limits/costs? Do you save network etc charges by choosing one over the other?

- Logging. Does one option give you better auditability over what emails were sent and when? Email history can often be critical down the track.

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

what about security prospective for API calls

Tommy, July 23, 2020 - 12:08 pm UTC

from security prospective, is it better to do API calls in Linux side not directly from the database?

thanks Connor
Connor McDonald
July 24, 2020 - 3:39 am UTC

Totally depends on where your expertise is (imo)

A linux novice could easily open up way too much on a firewall (or turn it off) in order to faciliate this...or maybe they'll nail it just right.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library