soa

淘宝SOA框架dubbo学习(2)--搭建Zookeeper注册中心服务

南楼画角 提交于 2019-11-27 20:19:55
继上一篇博文, 淘宝SOA框架dubbo学习(1) http://my.oschina.net/hanshubo/blog/374974 1、下载 Zookeeper 下载页面地址: http://www.apache.org/dist/zookeeper/zookeeper-3.4.6/ 注:下面步骤,windows和linux下几乎没什么太大区别 2、解压缩后进入 C:\zookeeper-3.4.6 目录结构如下图 3、进入conf目录 备份zoo_sample.cfg文件,然后将 zoo_sample.cfg 更名为zoo.cfg 4、编辑 zoo.cfg为以下内容, (其中data目录需改成你真实输出目录) 注:本人此次实验为单机版的zookeeper注册中心,多机版会有很大不同 tickTime=2000 initLimit=10 syncLimit=5 dataDir=/home/dubbo/zookeeper-3.3.3/data clientPort=2181 5、启动zookeeper windows双击:bin目录下zkServer.cmd文件 linux下,在bin目录执行zkServer.sh命令 6、telnet 127.0.0.1 2181 OK,zookeeper 启动成功 7、需要修改 服务提供者配置文件 provider.xml 和

How can I force WCF to autogenerate WSDLs with required method parameters (minoccurs=“1”)?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 20:11:26
While using WCF and OperationContracts I have the following method defined: [OperationContract] [FaultContract(typeof(ValidationFault))] [FaultContract(typeof(FaultException<ExceptionDetail>))] int DoSomething(int someId, MyComplexType messageData); When this gets translated to a WSDL by the WCF runtime, it ends up with with minoccurs="0" listed for the parameters someId and messageData (and subsequently throws a runtime error if these parameters are missing). If I generate a proxy using SoapUI I get something that looks like this: <com:DoSomething> <!--Optional--> <com:EventId>1</com:EventId>

WCF Message & Data Contract, DTO, domain model, and shared assemblies

情到浓时终转凉″ 提交于 2019-11-27 17:03:50
问题 I have a web client that calls my WCF business service layer, which in turn, calls external WCF services to get the actual data. Initially, I thought I would use DTOs and have separate business entities in the different layers... but I'm finding that the trivial examples advocating for DTOs, to be, well, trivial. I see too much duplicate code and not much benefit. Consider my Domain: Example Domain I have a single UI screen (Asp.net MVC View) that shows a patient's list of medications, the

Orchestration vs. Choreography

落花浮王杯 提交于 2019-11-27 16:38:36
What are the differences between service orchestration and service choreography from an intra-organization point of view. Basic technologies such as (XML, SOAP, WSDL) provide means to describe, locate, and invoke services as an entity in its own right. However, these technologies do not give a rich behavioral detail about the role of the service in more complex collaboration. This collaboration includes a sequence of activities and relationships between activities, which build the business process. There are two ways to build this process: service orchestration and service choreography.

What is “Outbound Transaction” in layman terms?

坚强是说给别人听的谎言 提交于 2019-11-27 15:54:43
We are going to build WCF services based on SOA. During a meeting recently, client explained the new system environment. He used the word “outbound transaction”. Due to time limitations, I could not get it clarified. Then I made some search in internet. However it leads me to different topics. So, my question is - what is “Outbound Transaction” in the context of “ service orientation ”? Can you give an example? READING: What is SOA "in plain english"? What is a "web service" in plain English? WCF, DataPower integration - secure binding necessary? For the sake of your project, make sure you do

Understanding Data Outside Of Service : SOA

廉价感情. 提交于 2019-11-27 15:53:26
Note: Data outside of service means the message returned by a service and consumed by the client. I have a service named LastBuyer Service. This will return the last buyer name of a book when I input the bookID to the service. When I call the service for the same book id, it will return different result (if a book is purchased by a new buyer). So I cannot cache the result of the service in the client (for a particular BookID). While reading the article “Data on the Inside vs. Data on the Outside” it says “Ok to Cache” – “ Since the ID of the message returns the same data, it is OK to cache a

Service Oriented Architecture - AMQP or HTTP

天涯浪子 提交于 2019-11-27 10:27:51
A little background. Very big monolithic Django application. All components use the same database. We need to separate services so we can independently upgrade some parts of the system without affecting the rest. We use RabbitMQ as a broker to Celery. Right now we have two options: HTTP Services using a REST interface. JSONRPC over AMQP to a event loop service My team is leaning towards HTTP because that's what they are familiar with but I think the advantages of using RPC over AMQP far outweigh it. AMQP provides us with the capabilities to easily add in load balancing, and high availability,

JSON, REST, SOAP, WSDL, and SOA: How do they all link together

雨燕双飞 提交于 2019-11-27 09:56:00
Currently doing some exams and I'm struggling through some concepts. These have all been 'mentioned' in my notes really but I didn't really understand how they all linked together. As far as my understanding is: SOA - a solution to make service consumers/providers communicate. (as far as I understand this is the umbrella term for everything else) WSDL - A language that describes the provider service. SOAP - A XML protocol 'wrapper' used by the services to send messages. Works in conjunction with WSDL as to provide parameters? REST - A design pattern that is similar to SOAP in function but

What is SOA “in plain english”? [closed]

爷,独闯天下 提交于 2019-11-27 09:55:59
Can someone explain in plain english what is SOA all about ? I hear SOA here, SOA there but I cannot understand exacly what it is and what is used for. Was it some simple concept and later evolved into something huge or what? All documents, including wiki are a bit abstract or maybe I'm an idiot and don't get it. Is there an idiot's guide on this? What exactly is there behind these three letters? You might find this article (What is SOA? - SOA and Web Services Explained ) helpful. A little teaser: SOA is a style of architecting applications in such a way that they are composed of discrete

Why are CRUD operations so bad in a SOA design?

故事扮演 提交于 2019-11-27 05:37:31
问题 I have just finished reading an article on MSDN by John Evdemon. He bashes the CRUD interfaces and calls it an anti-pattern. While I agree that having ANYTHING stateful is difficult and Current and MoveNext are bad ideas I don't agree that CRUD as in Create Read Update and Delete are bad. If I have a car service and I want to let clients be able to do the basics, as in Create a car, get a cars details, update a cars details or delete a car then how are they meant to be able to do those things