soa

分布式系统(一) --SOA

时光怂恿深爱的人放手 提交于 2019-12-16 17:06:18
SOA (面向服务编程):Service Oriented Architecture面向服务的架构。也就是把工程拆分成 服务层 、 表现层 两个工程。服务层中包含业务逻辑,只需要对外提供服务即可。表现层只需要处理和页面的交互,业务逻辑都是调用服务层的服务来实现。 这样做的好处就是,系统之间的调用很方便,A系统要用到B系统,直接调用B系统的服务层就可以了。 集群 就是多台服务器跑的都是一套完整的代码,这就叫集群(水平拆分); 分布式 就是多台服务器合起来跑的才是一套完整代码,这就叫分布式(垂直拆分) 分布式服务器之间如何解决通信的问题 -全部都是基于socket 分布式系统通信流程: 1、七层网络协议 tcp/udp协议() 2、源主机找到目标主机 3、源主机和目标主机之间如何建立联系   tcp:面向连接(保存状态)的一种协议     优点:可靠     缺点:速度慢   udp:面向数据报(无连接,五状态)     优点:速度快     缺点:不可靠   3.1tcp协议     3.1.1 通过3此握手协议         客户端发起(syn)服务器响应(ack)     3.1.2 syn攻击         网络崩溃     3.1.3 通过4次回收协议、         客户端发起(fin)服务器响应(ack) 来源: https://www.cnblogs.com

Condition when subscribers in NServiceBus send an auto-subscribe message

喜夏-厌秋 提交于 2019-12-13 20:59:04
问题 I am finding out that even when my NSB process does not handle messages for say DTOXXX, it is still sending an auto-subscribe message to the publisher queue for DTOXXX. This is not the desired behavior. I want the process to publish and subscribe to messages for DTOYYY, but any communication using DTOXXX is strictly send only. If that wasn't clear enough I have 2 assemblies that contains my DTO. I Want to establish a pub/sub bus, but only for assemblies in YYY.dll. As for the DTOs in the

Flatten Nested XML/hierarchy using XSLT Transformation

霸气de小男生 提交于 2019-12-13 10:40:08
问题 I have a nested hierarchial xml structure which is to be flattened using xsl transformation. Following is the scenario. <company> <Managers> <Manager> <Name>Matt</Name> <ID>1</ID> <Manager> <Name>Joe</Name> <ID>11</ID> <Manager> <Name>Dave</Name> <ID>111</ID> </Manager> </Manager> </Manager> <Manager> <Name>mike</Name> <ID>2</ID>> </Manager> </Managers> </company> result: Matt 1 Joe 11 Dave 111 Mike 2 回答1: A better alternative via @Mathias Mueller, <?xml version="1.0" encoding="UTF-8" ?> <xsl

SOA and ASP.net MVC

旧时模样 提交于 2019-12-13 06:50:40
问题 We are in architecture design phase of a web based Insurance System (for quoting, policy management, claims management, rate-making etc). This application would be comprises of different modules. We are planing to go with ASP.Net MVC and SQL Server. For business logic layer, we are bit confused whether to seperate our BLL using WCF services or just make BLL part of our Model. I would really appreciate your input why or why not go with SOA in our situation. 回答1: If you absolutely sure that

What are the differences / similarities between JBI and SCA

青春壹個敷衍的年華 提交于 2019-12-13 03:24:12
问题 Could point me to some good links, or share experiences of the differences / similarities between the JBI and SCA specifications? Many thanks :-) 回答1: This article can provide the beginning of an answer (even though it does not detail the specifications) OSOA article SCA allows multiple technologies to be used to implement services (e.g. Java, BPEL, C++) and multiple bindings for communicating with services (e.g. Web services or JMS). However, SCA does not describe how you would introduce a

System consuming WCF services from another system, when underlying databases have relationships

旧时模样 提交于 2019-12-12 22:03:58
问题 This is an issue that I have struggled with in a number of systems but this one is a good example. It is to do with when one system consumes WCF services from another system, and each system has their own database, but there are relationships between the two databases. We have a central database that holds a record of all documents in the company. This database includes Document and Folder tables and it mimicks a windows file structure. NHibernate takes care of data access, a domain layer

Convert multiple wcf services into a single service – Architecture Guidance needed

耗尽温柔 提交于 2019-12-12 21:45:40
问题 I need guidance before starting huge amount of work. We have numerous wcf services (around 500) exposed on single iis. Currently these services use the same binding but have different and lengthy service contracts (we have around 15000 operation contracts!). My task is to set up a common processing pipeline that will apply to all services. That way we will have a hook to control these currently autonomous services. With these hook we will have the opportunity to control transactional behavior

How do I apply XACML rules to every child URI?

半世苍凉 提交于 2019-12-12 18:27:59
问题 I'm working with XACML policies and I have a rule that includes a resource target similar to the following: <Resources> <Resource> <ResourceMatch MatchId="urn:oasis:names:tc:xacml:1.0:function:anyURI-equal"> <AttributeValue DataType="http://www.w3.org/2001/XMLSchema#anyURI">/MyDirectory</AttributeValue> <ResourceAttributeDesignator AttributeId="urn:oasis:names:tc:xacml:1.0:resource:resource-id" DataType="http://www.w3.org/2001/XMLSchema#anyURI"/> </ResourceMatch> </Resource> </Resources> I

Web Service ‘mandatory/optional’ fields: XSD Design time vs Runtime

纵饮孤独 提交于 2019-12-12 15:42:16
问题 We are currently building a pile of SOAP Web Service to front the access of various backend systems. While defining our Request/Response message XML, we see multiple services needing the ‘Account’ object with different ‘mandatory/optional’ fields. How should we define and enforce the validation of these ‘mandatory/optional’ fields on the same Message? I see these options 1) Enforce validation with XSD by creating different 'Account' Complexe Type Pros : Design time clarity. Cons :

How should services communicate between each other?

一个人想着一个人 提交于 2019-12-12 10:12:48
问题 While learning from @tereško's answer on how should a model be structured, I can't find what is the best way for communication between the services. I also found this answer which is a similar situation I'm dealing with, but the example is great for showcase. So, in that sense, how do I retrieve the recognition service inside of a Blog service for example, when the service has only access to a domain and mapper factory objects. Do I send it from the controller? Or do I need to send a service