Representational State Transfer (REST) is a software architecture style consisting of guidelines and best practices for creating scalable web services. REST is a coordinated set of constraints applied to the design of components in a distributed hypermedia system that can lead to a more performant and maintainable architecture.web
从上面的定义中,咱们能够发现REST实际上是一种组织Web服务的架构,而并非咱们想象的那样是实现Web服务的一种新的技术,更没有要求必定要使用HTTP。其目标是为了建立具备良好扩展性的分布式系统。缓存
反过来,做为一种架构,其提出了一系列架构级约束。这些约束有:服务器
若是一个系统知足了上面所列出的五条约束,那么该系统就被称为是RESTful的。架构