Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Exposing API VS Stored Procedure

Exposing API VS Stored Procedure

Scheduled Pinned Locked Moved Web Development
sharepointdatabaseoraclevisual-studiocollaboration
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Java Lead
    wrote on last edited by
    #1

    >Hi, I have a Oracle DB in which all the information is stored and this information is been consumed by different teams and below is the two options i have to decide on : 1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure. 2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team. Like to know what is the PRON and CRONS with these options and what is the best possible solution to go with. Thanks

    L Z H 3 Replies Last reply
    0
    • J Java Lead

      >Hi, I have a Oracle DB in which all the information is stored and this information is been consumed by different teams and below is the two options i have to decide on : 1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure. 2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team. Like to know what is the PRON and CRONS with these options and what is the best possible solution to go with. Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Please stop spamming the forums with See this message[^].

      1 Reply Last reply
      0
      • J Java Lead

        >Hi, I have a Oracle DB in which all the information is stored and this information is been consumed by different teams and below is the two options i have to decide on : 1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure. 2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team. Like to know what is the PRON and CRONS with these options and what is the best possible solution to go with. Thanks

        Z Offline
        Z Offline
        ZurdoDev
        wrote on last edited by
        #3

        Java Lead wrote:

        1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure.

        Callers of the Stored Procedure will need direct access to the Oracle DB.

        Java Lead wrote:

        2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team.

        This gives you the most control over the situation and is likely to be the most secure.

        There are only 10 types of people in the world, those who understand binary and those who don't.

        1 Reply Last reply
        0
        • J Java Lead

          >Hi, I have a Oracle DB in which all the information is stored and this information is been consumed by different teams and below is the two options i have to decide on : 1. Write a Stored procedure and give the stored procedure to the respective teams and they can call the stored procedure. 2. Write a stored procedure wrap it as an API and expose the API, different team will call the API exposed and API will in turn hit the SP and return the response to the team. Like to know what is the PRON and CRONS with these options and what is the best possible solution to go with. Thanks

          H Offline
          H Offline
          Harpreet05Kaur
          wrote on last edited by
          #4

          The second option is better than the first one if different teams are working.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups