在开发REST Web服务时使用设计模式 [英] Using design patterns in development of REST web service

查看:67
本文介绍了在开发REST Web服务时使用设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发Web服务时使用设计模式有哪些不同的好处?

我们可以通过设计模式获得更好的应用程序性能。什么样的设计模式有利于asp.net中Web应用程序的更好性能。

如果我们使用设计模式,我们可以在REST Web服务中获得良好的性能。

如果我们将两个应用程序的性能与仅MVC和一个MVC进行比较,并提供宁静的服务。哪一个性能更好。如果我们提供其他可扩展性(前端开发)的休息网络服务有什么好处



我尝试了什么:



i正在研究性能有效的设计模式。

what are different benifits of using Design patterns in develpment of a webservice?
can we get better performance of application with design patters. what design patterns are good for better performance of web application in asp.net.
Can we get good performance in REST web service if we use the design patterns.
If we compare the performance of two application one with only MVC and one with MVC and is giving the restful service. Which one is better in performance. What are the benifits if we make rest web service other then extendibility ( front end development)

What I have tried:

i am looking on the design patterns which are effective in performance.

推荐答案

模式适用于开发过程,更易于维护代码(你是开发人员和你之后接管代码的任何人)不是为了表现。



为了提高性能,你需要:



1)通过分析确定瓶颈。

2)优化代码路径1

3)使用缓存

4)...
Patterns are for the development process and easier maintenance of the code (you the developer and any one who takes over the code after you) not for performance.

To boost performance, you need to :

1) Determine bottle necks through profiling.
2) Optimize code paths from 1
3) Use caching
4) ...


这篇关于在开发REST Web服务时使用设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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