architecture

Autocomplete performance and private “magic search”

可紊 提交于 2019-12-25 02:37:25
问题 Poor performance of autocomplete fields reduces their usefulness. If the client-side implementation has to call an endpoint that does heavy db lookup, the response time can easily get frustrating. One neat approach comes from AWS Case Study: IMDb. It used to come with a diagram (no longer available), but in a nutshell a prediction tree would be generated and stored for every combination that can resolve in a meaningful way. E.g. resolutions for sta would include Star Wars, Star Trek,

Atomic Insert-or-Get and Compare-and-Update - A Repository violation?

三世轮回 提交于 2019-12-25 01:25:15
问题 I'm using a the Repository pattern as part of a C#4 and MVC3 project and I just want to make sure I'm not doing something bad; either that or it's just my architectural pedantry getting a bit carried away with itself and I just need a figurative slap round the face :) For a particular model type I need to be able to do the following two operations: Create a new instance in the repository so long as another doesn't exist with a certain state value Update the state value of an instance in the

How can I dynamically get the system architecture?

跟風遠走 提交于 2019-12-24 22:33:04
问题 Well as the title says is there any way to get the system architecture within c++? Thanks! 回答1: Based on "dynamically" and "Visual C++", I'm going to guess you want to do this at run-time under Windows. In that case, you can use GetSystemInfo or GetNativeSystemInfo to retrieve some basic information about the system and processor. If you need more information about the processor and specific features it supports, you can use IsProcessorFeaturePresent to find them (though it can be a little

WCF to WCF Communication

不打扰是莪最后的温柔 提交于 2019-12-24 21:57:51
问题 I have an architecture, where there are the following constituents: External Applicaton (EA) - Third party who makes a request to WCF Service WCF Service (WS) - All the business logic Pub-Sub Service (PSS) - Handles publishes and subscriptions Internal Application (IA) - Subscribes or unsubscribes to Pub-Sub (with CallBacks) The external application (EA) references the WCF service (WS) and makes a call to a specific method, to which all Internal Applications (IA) should be notified through

How would you design an application to run a machine?

喜欢而已 提交于 2019-12-24 20:14:14
问题 What type of machine you ask? A machine that measures wedge and roundness of lenses. I've already written software for the machine and it is in production, but it is brittle and prone to lock ups when they dont do things in the right order. I'm trying to come up with the best way to architect it so that its stable and maintainable. Here's the quick twenty second run down. There are two modes, setup and run. In setup mode the operator can manually move any of the 6 different motors using one

Best use of SignalR Hub

青春壹個敷衍的年華 提交于 2019-12-24 19:51:44
问题 In my app, I have different parts, like Products, People, Suppliers, etc that they are entities which I defined as a Table in Db, and each part has separated page and its own logic for instant client update according to the Database changes. Also, I have some general rules for sending messages to Users and Groups. In this application, users can chat with them. However, I really can't decide how should I implement these in my application? How many hubs do I need? Single hub and different

How shoud be a parameters table designed and used on businesses and GUI layers? [closed]

眉间皱痕 提交于 2019-12-24 18:24:25
问题 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 2 years ago . I'm currently designing an application and I need to know how should be designed a constants parameter table. Also, I want to know how to use this table on the application. For example: for a parameter sex (M or F) in a system, it should be in its own table or is better to

Designing and structuring a multirole ReactJS application

你说的曾经没有我的故事 提交于 2019-12-24 17:53:29
问题 I am bulding a web application that talks with some APIs in reactJS. My app has 4 roles, admin, master, slave, baby. Every role can see something more than the others, so the the menus, and the view are slightly different between them. e.g. The navbar has: for the admin: 5 buttons for the master: 4 buttons for the salve: 3 buttons for the baby: 2 buttons I wanted to know what is the best practice for structuring this application: Should I have 4 differents apps? This way the component would

Point of Sale Application Architecture

你。 提交于 2019-12-24 15:32:27
问题 I have been asked to build a POS Application for a Restaurant. I have experience creating POS application in VB6.0 and have always wanted to create one with UX. I am looking to create one with WPF as front end. I pretty much have the process picture in mind and also screens. Said so much, I am not sure how to Architecture one. Few Major questions that come to my mind are : Should I use Composite Application Guidance for WPF - Prism. If the answer is yes will performance reduce as in POS

Published and waiting for response on a topic with RabbitMQ / EasyNetQ - how to get only yours?

点点圈 提交于 2019-12-24 15:09:31
问题 When a publisher expects an answer to a message, how to ensure it will get only relevant answers (to its own messages) when you scale it out? We have a client process that publishes a message for a server process to answer. Additionally, we have a "listener" process that just needs to consume both the questions and the answers without publishing anything. Also, the server process might be broken to several ones on the future, creating a message cascade. We can't use the request/response,