architecture

SOA architecture data access

我们两清 提交于 2020-01-03 14:55:48
问题 In my SOA architecture, I have several WCF services . All of my services need to access the database. Should I create a specialized WCF service in charge of all the database access ? Or is it ok if each of my services have their own database access ? In one version, I have just one Entity layer instanced in one service, and all the other services depend on this service. In the other one the Entity layer is duplicated in each of my services. The main drawback of the first version is the

SOA architecture data access

余生长醉 提交于 2020-01-03 14:55:06
问题 In my SOA architecture, I have several WCF services . All of my services need to access the database. Should I create a specialized WCF service in charge of all the database access ? Or is it ok if each of my services have their own database access ? In one version, I have just one Entity layer instanced in one service, and all the other services depend on this service. In the other one the Entity layer is duplicated in each of my services. The main drawback of the first version is the

How to compare two distinctly different objects with similar properties

旧城冷巷雨未停 提交于 2020-01-03 13:35:29
问题 This is all in C#, using .NET 2.0. I have two lists of objects. They are not related objects, but they do have certain things in common that can be compared such as a Guid based unique identifer. These two lists need be filtered by another list which just contains Guid's which may or may not match up with the ID's contained in the first two lists. I have thought about the idea of casting each object list to just 'object' and sorting by that, but I'm not sure that I'll be able to access the ID

Is there a maximum number of assemblies for a .NET app?

拥有回忆 提交于 2020-01-03 12:30:51
问题 Quite a few apps support plugins. Are there any downsides to having a large number of plug-ins? Is there a sweet spot beyond which there's a performance degradation perhaps? What's the largest number of assemblies you've seen loaded in an app? 回答1: I once worked on a backend-framework that had an assembly dependency tree of over 2500 endpoints. It was disgusting and took two hours to build. So while you can load tons and tons of them, prepared to have people pointing at you and throwing

How to build front end for Microservices

纵然是瞬间 提交于 2020-01-03 10:59:08
问题 Let's say I have a dozen microservices. I am wondering where should the front end go. Let's say front end is HTML, Javascript, CSS. One way is to make it a separate service handled by a UI team. So it can form the API gateway where the request from browser comes in first. But this seems against the idea of independent self contained services. browser ------> API Gateway ------> Microservices In this link, they say that Javascript and CSS should be served by microservices. API gateway should

Why are Docker build commands running so slow in Elastic Beanstalk?

喜欢而已 提交于 2020-01-03 10:21:47
问题 EB was complaining that my build was timing out, so I ssh'd into an instance and decided to run docker build myself to see what was happening. Every step, even something as simple as a mkdir takes ages to run. Even a WORKDIR stalls for at least a minute or two before executing. On my local machine these are instant. What is going on? 回答1: Same issue here with an Ubuntu machine running on AWS. Turns out the the key to the solution was switching from devicemapper to aufs storage backend. First,

Why does the size of an int vary in some compilers? [duplicate]

情到浓时终转凉″ 提交于 2020-01-03 06:19:24
问题 This question already has answers here : What does the C++ standard state the size of int, long type to be? (24 answers) Closed 5 years ago . Reading the following resource it says the size of an int/pointer can vary depending on the compiler: http://www.c4learn.com/c-programming/c-size-of-pointer-variable/ Why is this? I understand C defines only the min and max number of what a type should hold, but why would one compiler choose to set for example int to 2 bytes and another at 4? What would

Why does the size of an int vary in some compilers? [duplicate]

不打扰是莪最后的温柔 提交于 2020-01-03 06:19:10
问题 This question already has answers here : What does the C++ standard state the size of int, long type to be? (24 answers) Closed 5 years ago . Reading the following resource it says the size of an int/pointer can vary depending on the compiler: http://www.c4learn.com/c-programming/c-size-of-pointer-variable/ Why is this? I understand C defines only the min and max number of what a type should hold, but why would one compiler choose to set for example int to 2 bytes and another at 4? What would

How should I organize the backend and frontend of my code?

天涯浪子 提交于 2020-01-03 02:52:09
问题 I have a project and I've written a lot of code for the backend (Flask / Python) and a lot of code for the front end (Vue). Up until now they've been separate folders / Github repos. I was wondering what was typical for combining them together with respect to (1) Github repositories and (2) file structure. The front end depends on some functions in the backend, so they'd need to be linked in some way, but since there is so much code for both aspects of the project, I thought it might be

GET requests in TOR network without installing TOR browser/bundle?

五迷三道 提交于 2020-01-03 00:55:30
问题 I want to perform http/https GET requests to the TOR network. My one issue is that this project needs to be scaleable, the software I'm designing needs to be light so having all users installing the TOR bundle to use with my program isn't possible. Is there someway to generate GET requests on the TOR network without having the browser? For example can I do direct requests to a TOR bridge? 回答1: Yes, it's possible. Tor Browser just runs the Tor daemon in the background and proxies it's requests