architecture

Does ST(State Transfer) in REST mean that state must be held by client?

瘦欲@ 提交于 2019-12-29 07:18:40
问题 I read What does “state transfer” in Representational State Transfer (REST) refer to? and several post or videos about REST, and I know one of the constraint of REST is stateless. According to many posts like http://www.restapitutorial.com/lessons/whatisrest.html ,to make the architecture stateless, the client must hold the enough information for the server to do the right thing, which means the server does not have any client state. So does it mean we are only about to build a REST

import csv file/excel into sql database asp.net

风格不统一 提交于 2019-12-29 03:40:10
问题 I am starting a project with asp.net visual studio 2008 / SQL 2000 (2005 in future) using c#. The tricky part for me is that the existing DB schema changes often and the import files columns will all have to be matched up with the existing db schema since they may not be one to one match on column names. (There is a lookup table that provides the tables schema with column names I will use) I am exploring different ways to approach this, and need some expert advice. Is there any existing

What's the best approach to divide model and actions into classes in MVC pattern

强颜欢笑 提交于 2019-12-29 01:59:09
问题 Let's say I have a class Employee with a huge amount of fields. And I have a lot of actions related to db with it like CRUD, filter etc. In MVC pattern all of these stuff could be placed into one class of Model part. But again, what if I have a lot of fields and a lot of actions. How to properly split to classes the basic object staff (fields, basic methods: getters & setters, toString etc.) and the actions. Like Employee and EmployeeActions ? Or any best approach? Need your experience) 回答1:

What are the best practices for building an SMS server

本小妞迷上赌 提交于 2019-12-28 05:40:13
问题 I am trying to build a system in which I have terminal nodes capable of sending/receiving SMS messages over a GSM network. I now need to construct a server solution which would send SMS messages acting as a gateway between a webserver holding my business logic and the clients (nodes). The communication is both ways. I've read something about complete SMS server solutions (that act as a GSM gateway, possibly), but they turn out to be too expensive. I've thought about attaching a mobile phone

Where I can find a detailed comparison of Java XML frameworks?

你。 提交于 2019-12-28 03:21:12
问题 I'm trying to choose an XML-processing framework for my Java projects, and I'm lost in names.. XOM, JDOM, etc. Where I can find a detailed comparison of all popular Java XML frameworks? 回答1: As Blaise pointed out stick with the standards. But there are multiple standards created over the period to solve different problems/usecases. Which one to choose completely depends upon your requirement. I hope the below comparison can help you choose the right one. Now there are two things you have to

Using Entity Framework entities as business objects?

谁说胖子不能爱 提交于 2019-12-28 02:26:07
问题 I'm using Entity Framework O/R mapper from Microsoft and using entity classes (generated classes that are mapped to DB objects) as a business objects. Is this OK? Please state your cons or pros. What to do in a case of WCF communication between business layer and presentation, how to send those objects as data members? 回答1: I am using EF in this fashion and one nice feature is that generated entities are partial classes, allowing them to be extended in a way that is fairly protected from

Difference between frontend, backend, and middleware in web development

夙愿已清 提交于 2019-12-28 02:22:46
问题 I was wondering if anyone can compare/contrast the differences between frontend, backend, and middleware ("middle-end"?) succinctly. Are there cases where they overlap? Are there cases where they MUST overlap, and frontend/backend cannot be separated? In terms of bottlenecks, which end is associated with which type of bottlenecks? 回答1: Here is one breakdown: Front-end tier -> User Interface layer usually consisting of a mix of HTML, Javascript, CSS, Flash, and various server-side code like

what is a store buffer?

╄→гoц情女王★ 提交于 2019-12-27 19:11:37
问题 can anyone explain what is load buffer and how it's different from invalidation queues. and also difference between store buffers and write combining buffers? The paper by Paul E Mckenny http://www.rdrop.com/users/paulmck/scalability/paper/whymb.2010.07.23a.pdf explains very nicely about the store buffers and invalidation queues but unfortunately doesn't talk about write combining buffers 回答1: An invalidate queue is more like a store buffer, but it's part of the memory system, not the CPU.

what is a store buffer?

会有一股神秘感。 提交于 2019-12-27 19:11:09
问题 can anyone explain what is load buffer and how it's different from invalidation queues. and also difference between store buffers and write combining buffers? The paper by Paul E Mckenny http://www.rdrop.com/users/paulmck/scalability/paper/whymb.2010.07.23a.pdf explains very nicely about the store buffers and invalidation queues but unfortunately doesn't talk about write combining buffers 回答1: An invalidate queue is more like a store buffer, but it's part of the memory system, not the CPU.

What is the real difference between “Bastard Injection” and “Poor Man's Injection”

吃可爱长大的小学妹 提交于 2019-12-27 17:02:47
问题 From the "Dependency Injection in .Net" book I know that the object graph should be created at the Composition Root of the application which makes a lot of sense to me when you are using an IoC container. In all the applications I've seen when an attempt to use DI is being made, there are always two constructors: the one with the dependencies as parameters and the "default" one with no parameters which in turn calls the other one "newing" up all the dependencies but, in the aforementioned