c# - Calling REST API from SQL Server -
i have rest api push object message queue (rabbit mq). product owner asked me call api sql server stored procedure.
is normal , way?
is right way? if not, what's best solution problem?
i know sql server can call rest api , know high level languages c# better.
and problem how can convincing product owner use c# instate of tsql.
from security prospect - not recommend call database directly because data api may have security issues need handled before running on data base. example, can has scripts can delete data on database if run directly on databse server. can prevent if handle in separate layer.
from practical reasons - may want check data, change it, normalize it, etc, before insert database. outside database easier so. c# has lot of built in functions can that.
general practice - practice separate logic layer data layer.
better support , easier maintain - easier, example debugging c# code sql code. also, can catch problems before ruin database.
hope you.
Comments
Post a Comment