English 中文(简体)
预报系统设计:内部职能与外部职能分离或结合?
原标题:API Design: Separate or combine internal with external functions?

举例来说,请说,你在你的网站上制作了客座书,你计划通过APICA使外界能够进入创作和阅读功能。 更新和删除将不列入APIC,因为它只应在内部使用。

什么是更好的做法?

  • 通过APICA提供全部的CRUD功能,并仅限制公众查阅最新情况和删除。 因此,你本人也将使用该意向书。

  • 内部 员工和管理当局协调会对所有内部工作都不设APIC,从而只为制作和阅读单独制作一个APIC。 基本上,这为你们提供了两种使用制造和阅读的方法——一种是使用APIC,一种是没有的。

  • 内部 更新和删除内部工作不需要APIC的功能,然后只制作和阅读APIC。 如果你需要为内部工作建立和阅读功能,那么你必须使用APIC。

我希望这非常清楚,什么一般是最佳做法?

最佳回答

我喜欢第一个选择。 它有一个明确的例子,表明人们的关切是分开的,在适当的背景下使用适当的工具。

通过使用CRUD办法,你获得了统一和正直。 这导致设计更加一致,法律重叠减少,道路发展更加容易。 担保方面可以在申请中或在其外实施,而申请授权的是APIC。 就外部选择而言,例如,你可以使用三维方软件或硬件解决办法,如防火墙。

问题回答

暂无回答




相关问题
SQL Server - How many users do I *really* need?

I m setting up an application, and I m looking into purchasing a license for SQL Server. My question is pretty simple (though may have a complicated answer...) How many users accounts do I really ...

Object Graph / Persistence Question

I m currently working with an online application that requires multiple screens/steps in order to complete. The application domain is modeled using an object graph. Persistence to and from a database ...

Why does stack get truncated in Exception.StackTrace?

Why does the high part of the stack (in Exception.StackTrace) gets truncated? Let s see a simple example: public void ExternalMethod() { InternalMethod(); } public void InternalMethod() { try ...

ASP.NET MVC and Service Oriented Architecture

I would like to know how do i incorporate a feature like wcf within and MVC application. My current idea of the architecture is as follows: EntityFramework -> ASP.NET MVC (Views) ...

热门标签