architecture

Socket Programming design questions

陌路散爱 提交于 2021-01-28 02:59:10
问题 I'm messing around (for the first time) with Socket programming in C#, I'm making a Skype like application(Video call, IM, file share, screen share) and i have a couple of questions... 1) How should sockets truly work? On the client side I have a while loop which is effictively keeping the socket open, Is this correct? Or should i be closing the socket after each Send/Recieve (Im using BeginSend() and BeginRecieve()) and creating a new socket? interact() is called after the connection has

Architecture Domain Model and View Model

和自甴很熟 提交于 2021-01-27 19:40:22
问题 I am trying to build application by spring boot and Domain Driven Design. I have a problem about Domain model (match with fields of table DB) and View Model (response API). Domain Model: EX: class Name @Getter @NoArgsConstructor @AllArgsConstructor class Name { String value; } class Product @Getter @NoArgsConstructor @AllArgsConstructor class Product{ Name name; } ViewModel: @Data @NoArgsConstructor @AllArgsConstructor class ProductView { //int prodId; String prodName; } Select data DB by

structure a large project software with MVC [closed]

一曲冷凌霜 提交于 2021-01-27 10:31:20
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm building a big project with MVC, the best way division of its structure, including Backend and customers. I can make a sample

structure a large project software with MVC [closed]

允我心安 提交于 2021-01-27 10:30:42
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I'm building a big project with MVC, the best way division of its structure, including Backend and customers. I can make a sample

Is this okay to use UML component diagram for a 3-tier Architecture?

会有一股神秘感。 提交于 2021-01-27 07:13:11
问题 There are so many types of diagrams in UML. I am little confused about which one to use for what. I designed a 3-tier architecture for my web application software using UML Component Diagram. Please see the attached image and tell me if I'm doing this right or wrong. Is this a good idea to use Component Diagram for this architecture? 回答1: Basically I agree with @KeizerHarm's answer. However, there's a flaw in your diagram. Rather than packages you should use components since you put ports on

Reliable Collection Caching as Cache in Service Fabric

。_饼干妹妹 提交于 2021-01-27 02:28:48
问题 My system uses a bunch of micro service to process an item and I am planning to create a Stateful MicroService which holds the latest state of the item. In that service, I am planning to store all the item state in a reliable dictionary and whenever an item is accessed update the Last accessed field of the item. My requirement is that, I only want to store the recently used items in the reliable collection and need to move the items that are not accessed for long time to an external storage

Best practice injecting service into another service [closed]

China☆狼群 提交于 2021-01-05 08:53:14
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed last month . Improve this question We suppose that I have Two Entity ( Subscription and Application ) and for each one his Repository layer named ( SubscriptionRepository and ApplicationRepository ) and two Service for each one ( ISubscriptionService and IApplicationService ) In some case,

Ports and adapters / hexagonal architecture - clarification of terms and implementation

£可爱£侵袭症+ 提交于 2020-12-27 07:44:44
问题 After reading different sources about the Ports & Adapters architecture including Alistair Cockburn's original article I am still not sure about the definite meaning of the terms "port" and "adapter" - especially when it comes to mapping these concepts to implementation artifacts. Several sources (e. g. this post) imply that the ports in this architecture pattern are artifacts at the very outside, followed by the adapters in the intermediate layer that translate between the ports and the

Ports and adapters / hexagonal architecture - clarification of terms and implementation

生来就可爱ヽ(ⅴ<●) 提交于 2020-12-27 07:42:31
问题 After reading different sources about the Ports & Adapters architecture including Alistair Cockburn's original article I am still not sure about the definite meaning of the terms "port" and "adapter" - especially when it comes to mapping these concepts to implementation artifacts. Several sources (e. g. this post) imply that the ports in this architecture pattern are artifacts at the very outside, followed by the adapters in the intermediate layer that translate between the ports and the

Ports and adapters / hexagonal architecture - clarification of terms and implementation

坚强是说给别人听的谎言 提交于 2020-12-27 07:41:37
问题 After reading different sources about the Ports & Adapters architecture including Alistair Cockburn's original article I am still not sure about the definite meaning of the terms "port" and "adapter" - especially when it comes to mapping these concepts to implementation artifacts. Several sources (e. g. this post) imply that the ports in this architecture pattern are artifacts at the very outside, followed by the adapters in the intermediate layer that translate between the ports and the