Enterprise-Scale Software Development (COMP5348) Semester 2 2024 2SPSS

部署运行你感兴趣的模型镜像

Java Python COMP4348/5348 A2

Enterprise-Scale Software Development (COMP5348)

Semester 2, 2024

Assignment 2

Individual 10%

Due: 20 Oct 2024 at 23:59 on Canvas.

There are 3 questions, each worth 3 points, 4 points and 3 points respectively. For the calculation questions, you need to show your progress. Just giving the final result is not acceptable.

You can write your answers on paper and scan, or you can type your answers in your computer. Please merge all you answers in a single pdf file and upload in Canvas.

Question 1 (3 points)

In a REST-based design for a service, all the functionalities are provided through the limited set of HTTP verbs (GET, PUT, POST, DELETE, HEAD, OPTIONS).

Propose a RESTful design for the resources, URIs and operations, for a system that manages assignment attempt submission, as well as marking of attempts for students in courses. Your design should be RESTful, but would correspond to traditional design around methods like submitAttempt, fetchAssignmentAttempts, markAttempt, fetchUnmarkedAssignmentAttempts, fetchStudentUnattemptedAssignments, etc.

Enterprise-Scale Software Development (COMP5348) Semester 2, 2024 Assignment 2SPSS Question 2 (4 points)

Consider a database system that serves transactions of 2 distinct kinds. Each query transaction requires 35 ms of CPU processing and reading 230 blocks from disk (where each block occupies 4KB, and the disk can deliver 100 MB/s). Each update transaction requires 0.3ms of CPU processing, reading 1 block from disk, and it also requires sending a log record to a dedicated archival storage, an operation which occupies this resource for 30 ms. Each client generates transactions without any think time between one response and the next request.

(a) Suppose that each client generates requests for which the transaction mix consists of 25% update transactions and 75% query transactions. If there are 3 clients, use the “low-load bounds” to estimate the throughput and latency obtained.

(b) Still with 25% update transactions, what is the largest number of clients for which average response time will be below 2s?

Question 3 (3 points)

Consider a system WebSys made from 3 components:

   • Component A has MTTF of 3 months and MTTR of 2 days

   • Component B has MTTF of 1 yr and MTTR of 4 days

   • Component C has MTTF of 1 month and MTTR of 6 days

Calculate the overall availability and MTTF and MTTR, for the whole system WebSys         

您可能感兴趣的与本文相关的镜像

Python3.11

Python3.11

Conda
Python

Python 是一种高级、解释型、通用的编程语言,以其简洁易读的语法而闻名,适用于广泛的应用,包括Web开发、数据分析、人工智能和自动化脚本

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值