摘要
为解决面向数据设计的评测系统扩展性差、复杂度高、开发和维护效率低等问题,本文提出了基于领域驱动设计的实现方案。首先通过对业务需求的细化梳理,结合领域专家的专业知识,经过战略设计和战术设计,建立精准的领域模型。然后使用COLA框架搭建评测系统,在保障系统稳定性的前提下提升研发和维护效率。最后针对实施中碰到的安全沙箱、在线监考、竞赛排名等业务难点给出实现思路。实践证明,基于领域驱动设计的评测系统能够明显降低系统的耦合度和复杂度,满足多场景评测需求。
In order to solve the problems of poor scalability,high complexity,and low development and maintenance efficiency of the data-oriented online evaluation system,an implementation scheme based on domain-driven design is proposed.Firstly,through the detailed sorting of business needs,combined with the professional knowledge of domain experts,through strategic design and tactical design,an accurate domain model is established.Then use the cola framework to build an online evaluation system to improve R&D and maintenance efficiency on the premise of ensuring system stability.Finally,the implementation ideas are given for the business difficulties encountered in the implementation,such as safety sandbox,online invigilation and competition ranking.Practice has proved that the online evaluation system based on domain driven design can significantly reduce the coupling and complexity of the system and meet the needs of multi scene evaluation.
作者
张震
ZHANG Zhen(Institute of Information Technology,Zhejiang Financial College,Hangzhou,China,310000)
出处
《福建电脑》
2022年第12期39-43,共5页
Journal of Fujian Computer
基金
浙江金融职业学院校级课题(No.10212220105)资助。
关键词
领域驱动设计
在线评测
安全沙箱
在线监考
Domain Driven Design
Online Judge
Safety Sandbox
Online Invigilation