任何人都可以帮我完成以下问题的图表 [英] Could anyone help me to complete the diagram for the below problem

查看:174
本文介绍了任何人都可以帮我完成以下问题的图表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您正在开发一个显示银行网站货币汇率的网络应用程序。费率存储在银行的IBM大型机中,费率可通过网络服务获得。每次用户访问费率页面时,该页面都会向主机发出请求。这会在主机上产生过多的负载。特别是在大多数情况下,交付的费率是相同的。但同时费率可能在一天内波动,如果费率发生变化,网页不应显示缓存的值,而是向Web服务发出另一个请求。大型机的费率表支持触发器,其中每个对费率表的更新都可以调用触发器,其中触发器可以进一步调用Web服务。您将如何设计这样的缓存架构并确保它在速率变化时无效?请通过绘制图解释。



谢谢

Hadley

Assume that you are developing a web application that shows currency exchange rates for a bank web site. The rates are stored in an IBM Mainframe in the bank and rates are available through web services. Each time a user accesses the rates page, the page makes a request to the mainframe. This generates too much load on the mainframe. Especially most of the time the rates delivered is the same. But at the same time rates may fluctuate within the day and if rates have changed the web page should not display the cached values but make another request to the web service. The rates table at mainframe supports triggers where each update to the rates table can invoke a trigger where the trigger may further call a web service. How would you design such a caching architecture and make sure it is invalidated on rate changes? Please explain by drawing a diagram.

Thanks
Hadley

推荐答案

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!



如果遇到具体问题,请询问相关问题,我们会尽力提供帮助。但我们不打算为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


这篇关于任何人都可以帮我完成以下问题的图表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆