architecture

How to secure remote api for calls not coming from tyk?

…衆ロ難τιáo~ 提交于 2020-01-17 06:44:56
问题 I want to know what is the best way to secure a remote api for use by tyk. Let me explain : When a call this done by the proxy tyk it is secure because it takes a token or other. Now if I want to make calls directly to the remote API without going through the tyk proxy there is a problem because there is no need for token or other. How to secure remote api for calls not coming from tyk ? 回答1: Probably the simplest way to do this would be at the network level, essentially by whitelisting your

Is there any real reason to differentiate between POST and GET when handling incoming data?

谁都会走 提交于 2020-01-17 03:34:06
问题 Lately I've been using a wrapper PHP class that fetches GET and POST data and lets me access it using a single getter function. After years of developing web applications I've never had a single good reason to care whether an incoming var was coming from POST or GET. Not only that but I got really sick and tired of having to check both arrays for a single variable. Today I noticed that codeigniter has one getter function for POST data and one for GET. Is there any point to this? Has anyone

Multi-tenancy application: one database or multiple copies of same database

萝らか妹 提交于 2020-01-17 02:37:09
问题 It more architectural question. What is best practice creating multi-tenancy applicaton? Use single database for all tenants or use separate schema/database instance for each tenant? 回答1: The real issue here is overall customer (or rather activation) service segregation, which can be thought of at different levels of resource sharing for the DB tier: Application logic level : doesn't require separate schema/database, can have better performance, can lead to better resources optimization, can

SOA/WCF dissecting the system & service boundaries

让人想犯罪 __ 提交于 2020-01-16 21:40:32
问题 I'm building a system which will have a few channels feeding different clients (MonoDroid, MonoTouch, Asp.Net Mvc, REST API) I'm trying to adopt an SOA archetecture and also trying to adopt the persistence by reachability pattern (http://www.udidahan.com/2009/06/29/dont-create-aggregate-roots/) My question relates to the design of the archetecture. How best to split the system into discreet chunks to benefit from SOA. In my model have a SystemImplementation which represents the an

SOA/WCF dissecting the system & service boundaries

拟墨画扇 提交于 2020-01-16 21:37:13
问题 I'm building a system which will have a few channels feeding different clients (MonoDroid, MonoTouch, Asp.Net Mvc, REST API) I'm trying to adopt an SOA archetecture and also trying to adopt the persistence by reachability pattern (http://www.udidahan.com/2009/06/29/dont-create-aggregate-roots/) My question relates to the design of the archetecture. How best to split the system into discreet chunks to benefit from SOA. In my model have a SystemImplementation which represents the an

SOA/WCF dissecting the system & service boundaries

拟墨画扇 提交于 2020-01-16 21:35:07
问题 I'm building a system which will have a few channels feeding different clients (MonoDroid, MonoTouch, Asp.Net Mvc, REST API) I'm trying to adopt an SOA archetecture and also trying to adopt the persistence by reachability pattern (http://www.udidahan.com/2009/06/29/dont-create-aggregate-roots/) My question relates to the design of the archetecture. How best to split the system into discreet chunks to benefit from SOA. In my model have a SystemImplementation which represents the an

Swapping assemblies to implement DBMS-specific functionality

纵然是瞬间 提交于 2020-01-16 14:48:12
问题 (continuation of my question here, but thought it was different enough to start a new thread) I want to write an application that will allow the eventual customers to use their preferred DBMS (SQLServer, Oracle, etc) for the backend. I could have the main app call a "Factory" object, located in a separate assembly, that will return a DBMS-specific object that implements a common interface containing all the calls required for DB access. However, this means having the compiled code for all

Long inheritance hierarchy

a 夏天 提交于 2020-01-16 04:49:05
问题 I have very long class inheritance hierarchy. For example: -MyAbstractObject --MyAbstractUiObject ---MyAbstractTable -----MyAbstractPageableTable -------MyAbstractScrollableTable ---------MyAbstractStateblaTable etc... I read at Code complete that ideal inheritance deep is 3. And sometimes it allowable to make inheritance deep 7-9. But I have inheritance deep 11! How I can change my architecture? What design pattern is applicable to my case? And what is bad is that I can change places of

Multiple language components/classes [OOP/Patterns/IoC/DI]

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-16 00:53:25
问题 I have several components for which there exists different versions, depending on the language used by the system (configurable, and can be changed at runtime). For example, I have an interface ("component") for Tokenizer , and two concrete implementations for english and chinese, like so: public interface Tokenizer { List<String> tokenize(String s); } public class EnglishTokenizer implements Tokenizer { List<String> tokenize(String s) { ... }; } public interface ChineseTokenizer implements

Helper function: static in cpp or define as static helper class method [closed]

给你一囗甜甜゛ 提交于 2020-01-15 16:41:08
问题 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 4 years ago . I need to write a helper function(s) that will be used in a class method. Target is a static library. I know the following about the usage: it will not use this class members it will not be used in other classes I see two general ways to resolve it: define a helper class with