网:商业实体?

发布于 2024-09-25 14:12:55 字数 60 浏览 0 评论 0原文

大家好 我想知道作为软件架构师在设计业务实体时需要考虑哪些因素?

任何参考或帮助表示赞赏。

hi all
I would like to know that what considerations we need to do when designing business entities as a software architect?

Any reference or help is appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

爱你是孤单的心事 2024-10-02 14:12:55

这是一个非常广泛的问题,但我认为你必须考虑的一些高级主题包括:-

  • 并发 - 你的对象将如何处理它
  • 业务对象的缓存及其实现方式。
  • 业务对象的持久化/检索
    - 如果您使用将使用 ORM - 决定哪种 ORM 最适合
    您的需求
  • 业务规则验证及其工作原理
  • 亲子关系管理
  • N级撤消
  • 数据绑定支持
  • 交易支持
  • 业务对象的序列化
  • 对象克隆(深层复制)等实用程序

    此外,您还需要根据最适合您的要求的方式考虑各种模式

    1. 他们将拥有什么样的责任模式。例如:专家业务对象
    2. 这些对象是否会合并诸如延迟加载数据之类的模式。

    我认为探索一些 像 NHibernate 这样的 ORM 或像 < a href="http://www.lhotka.net/cslanet/Info.aspx" rel="nofollow">Rockford Lhotka 的 CSLA 作为起点。

    这应该为您提供一个相当公平的起点,甚至可以帮助您确定这些框架是否满足您的特定需求或您需要其他框架。

  • Its a very broad question but some high level topics that i think you must look at include:-

  • Concurrency - how your objects will handle it
  • Caching of Business objects and how it will be done.
  • Persistence / Retrival of business objects
    - If you use will use an ORM - Decision as to what ORM best fits
    your needs

  • Business rules validation and how it will work
  • Parent-child relationship management
  • N-level undo
  • Databinding Support
  • Transactions Support
  • Serialization of the business objects
  • Utilities like cloning (deep copy) of objects

    In addition, there will be various patterns that you need to consider based on what suits your requirements best

    1. What kind of responsibility pattern will they have. Eg: Expert Business objects
    2. Will the objects incorporate patterns like lazy loading their data or not.

    I think it would be good to explore some ORM like NHibernate or business object framework like Rockford Lhotka's CSLA as a starting point.

    This should give you a pretty fair starting point and even help you decide if these frameworks meet your specific needs or you need something else.

  • ~没有更多了~
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文