soa

RESTful JSON based SOA Registry

那年仲夏 提交于 2019-12-07 09:48:27
I'm searching for a simple registry which provides a very simple API and works with resources that can be described as JSON. 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. Disclaimer: I really love WSO2 stuff, I learned SOA looking at what they provide. The reason I didn't choose their registry is because from samples I've looked at it

Circular dependency in SOA

ⅰ亾dé卋堺 提交于 2019-12-07 08:42:33
问题 I'm guessing, it is a common question, but I will try to describe my current issue. I have a base service, lets name it 'CoreService', that provides I would say "main" functionality: handle data in DB (we have a centralized DB in our applications). There are a number of other applications, some of them have their own DB for local purposes. And there is one simple 'NotificationService'. Its purpose is to broadcast messages to different subscribers. Usually, this NotificationService is called

Entitity Framework: Change tracking in SOA with POCO approach

我是研究僧i 提交于 2019-12-07 00:26:45
问题 In our layered application, we are accessing database via WCF calls. We are creating and disposing contexts per request. Also we are using POCO approach. My question is, in pure POCO model (completely persistent ignorant POCOs) is it possible to track the changes, while we are creating and disposing context per request (as previous context is disposed in that service call)? If yes how EF handles this situation? As far as I can see 2 mechanisms (snapshot based change tracking and notification

How to design REST URI for multiple Key-Value params of HTTP GET

江枫思渺然 提交于 2019-12-06 20:20:42
问题 I am designing a RESTful API. One service should offer query functionality for multiple key-value pairs. For example, the client can query with one HTTP GET request for different products and the associated quantity. The client wants to query product 1 with the amount 44 AND product 2 with the amount 55. I actually don't want my URI to look like this: /produkt?productId1=1&productquantity1=44&productId2=2&productquantity2=55 because I don't know how many products are queried. Or like this:

Defining SLAs for WCF Services

a 夏天 提交于 2019-12-06 13:16:56
I have to performance/load test a bunch of interdependant services. They all use net.tcp and most use duplex contracts and internal queueing. [handrolled POCO queue class using lock(syncRoot) { if(queue.Empty) Thread.Wait(); }] Here's the approach I've come up with: Identify WCF Services to be performance tested Identify the relavant Performance counters for each of the Services Identify the logical startpoint that would take the execution through the services being tested Auto Generate Unit Tests using VS.Net for each of the services Write specific Functional Tests (For example, I can take a

How to: Responsive available Wcf duplex communication

爱⌒轻易说出口 提交于 2019-12-06 13:14:43
I'm working on an application that uses WCF to communicate between server and clients Server has changing number of services, along with one master service that clients can query for information about other services, and then subscribe to those they want using information from master service. Master service sends notifications to subscribed clients, when sub-services change (added, removed, etc) Also sub-services send notifications every few seconds. This sounds like a great opportunity for using WCFs Callback channels, however, they require you to use session. Also when sending notifications

How should services communicate between each other?

自古美人都是妖i 提交于 2019-12-06 12:47:22
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 factory too? Update : I did not provide an example since I mentioned that the second answer of tereško

Model-Service decoupling: what if my model needs a service?

感情迁移 提交于 2019-12-06 12:04:43
The Service layer is supposed to be on top of the Model layer. As such, models are not supposed to call services. However, I'm facing a situation where I need to, for example: interface Component { getResult(); } class Number implements Component { private value; public getResult() { return value; } } class Addition implements Component { private component1; private component2; public getResult() { return component1->getResult() + component2->getResult(); } } class ConstantFromExternalSource implements Component { private identifier; public getResult() { // call a service for fetching constant

Spring-ws or Axis2 or Something else for “Contract-First” approach to WS

陌路散爱 提交于 2019-12-06 12:02:35
Everyone's saying "Contract-First" approach to design WS is more inclined to SOA style design. Now, if we take the available open-source frameworks available to achieve that we have Spring-ws and also Axis2 (which supports both styles). I have a task to design SOA based e-commerce app. where loose coupling, quick response, security and scalability are the key points. So it is very important to choose the right framework from the start. Based on past experiences, which of them or something else do you guys think to be a more appropriate option for my requirements. That is a tough question. I

How do I lock down a .net 4.0 WCF Data Service

北慕城南 提交于 2019-12-06 11:35:54
I've had a WCF Data service published for about 2 months. It's 100% been hacked already. I even noticed the service published on twitter! Luckily my site was under development and the user entity was only about 80 beta testers. Still this is a pretty big problem. With the power of E.F. Navigation properties anyone can easily write a script to download all my user data and my valuable domain data that no-one else has. I want to provide non-authenticated access and do things like: Limit what columns get exposed (e.g. a users emails) Limit number of requests possible per day (e.g. 10 per request