基于RESTful JSON的SOA Registry [英] RESTful JSON based SOA Registry

查看:116
本文介绍了基于RESTful JSON的SOA Registry的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个简单的注册表,它提供了一个非常简单的API,并使用可以描述为JSON的资源。

I'm searching for a simple registry which provides a very simple API and works with resources that can be described as JSON.

我正在设计一个面向资源的架构(完全是HTTP REST,没有WS - *的ESB或其他东西,所有通信都是通过网络进行的,都是无状态的,所有服务都没有共享),所有这些都将使用JSON作为主要数据进行交谈,所以我有点无聊仅使用XML来处理SOA注册表。

I'm designing a Resource Oriented Architecture (entirely HTTP REST, no WS-*'s ESB or other things, all communications are made over network, are stateless and all services share nothing) that will be all talking using JSON as primary data, so I'm a bit bored to use XML only to work with that SOA Registry.

免责声明:我真的很喜欢WSO2的东西,我学会了SOA看他们提供的东西。我没有选择他们的注册表的原因是因为从我看过的样本看起来似乎不太可能使用JSON。

推荐答案

我不确定我明白了。您存储的JSON的语义是否与注册表服务器相关?因为如果没有,任何带有REST CRUD API的JSON存储引擎都应该没问题,比如CouchDB等。
然后你做HTTP访问控制只允许你的服务提供实体添加自己的条目,而客户端只能读取。

I'm not sure I get it. Is the semantics of the JSON you store relevant to the "registry" server at all? Because if not, any JSON storage engine with a REST CRUD API should be OK, like CouchDB, etc. You then do HTTP access control to only allow your service providing entities to add entries about themselves, and clients may only read.

或者这个注册表是否真的对数据做了些什么,比如定期主动测试服务可用性和更新可达性状态?因为这听起来像是存储和提供数据的单独问题,因此可以是一个单独的组件。

Or should this "registry" actually do something with the data, like periodically actively test service availability and update reachability status? Because that sounds like a separate concern from storage and serving of the data, thus can be a separate component.

这篇关于基于RESTful JSON的SOA Registry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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