[论文解读] Implementing Microservices through Microtasks.
本文提出了一种行为驱动的微任务工作流,用于实现微服务,其中每个微任务专注于指定、测试、实现和调试单个函数行为。在一项用户研究中,一小撮众包开发者成功完成了350个微任务,实现了13个函数,并交付了一个仅含四个缺陷的功能性微服务,实现了快速入职和高生产率。
Microtask programming is a form of crowdsourcing for programming in which implementation work is decomposed into short, self-contained microtasks. Each microtask offers a specific goal (e.g., write a unit test) as well as all of the required context and environment support necessary to accomplish this goal. Key to microtasking is the choice of workflow, which delineates the microtasks developers may complete and how contributions from each are aggregated to generate the final software product. Existing approaches either rely on a single developer to manually generate all microtasks, limiting their potential scalability, or impose coordination requirements which limit their effectiveness. Inspired by behavior-driven development, we describe a novel workflow for decomposing programming into microtasks in which each microtask involves identifying, testing, implementing, and debugging an individual behavior within a single function. We apply this approach to the implementation of microservices, demonstrating the first approach for implementing a microservice through microtasks. To evaluate our approach, we conducted a user study in which a small crowd worked to implement a simple microservice and test suite. We found that the crowd was able to use a behavior-driven microtask workflow to successfully complete 350 microtasks and implement 13 functions, quickly onboard and submit their first microtask in less than 24 minutes, contribute new behaviors in less than 5 minutes, and together implement a functioning microservice with only four defects. We discuss these findings and their implications for incorporating microtask work into open source projects.
研究动机与目标
- 解决现有微任务方法在软件开发中可扩展性受限的问题。
- 通过围绕单个函数行为组织微任务,减少基于众包编程中的协调开销。
- 评估行为驱动的微任务工作流是否能有效支持完整微服务的实现。
- 通过结构化的微任务工作流,评估众包微服务开发的可行性与生产率。
提出的方法
- 将微服务实现分解为微任务,每个微任务聚焦于函数内的单一行为。
- 设计一种工作流,引导开发人员识别、测试、实现和调试每个微任务中的一个行为。
- 在每个微任务中提供完整上下文和环境支持,以实现自包含的贡献。
- 通过定义的工作流编排,将单个微任务的贡献整合为一个连贯的软件产品。
- 使用行为驱动开发原则来指导微任务的规格说明和验证。
- 通过一项小规模众包用户研究,评估该工作流在实际应用中的表现。
实验结果
研究问题
- RQ1行为驱动的微任务工作流能否实现可扩展且协调良好的众包微服务实现?
- RQ2开发人员使用该工作流后,多快能完成入职并提交其第一个微任务?
- RQ3通过该方法生成的最终微服务的缺陷率和功能正确性如何?
- RQ4该工作流在支持单个行为快速实现方面的有效性如何?
主要发现
- 众包开发者成功完成了350个微任务,并在微服务中实现了13个函数。
- 开发人员能够在24分钟内完成入职并提交其第一个微任务。
- 贡献者平均每个行为的实现时间少于5分钟。
- 最终微服务仅包含四个缺陷,表明其功能正确性很高。
- 行为驱动的微任务工作流实现了有效协调,且无需集中式协调开销。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。