architecture

Infinite loop with Python imports; looking for Pythonic way

若如初见. 提交于 2020-07-09 05:35:03
问题 My team is working on huge project with Django. For sake of simplicity, here's plain Python to illustrate the problem (original problem has models and apps instead of classes (I know that both are classes) and packages (I know that both are packages as well)). a.py : from b import B1 class A1(object): def __init__(self): print "object A1" class A2(object): def __init__(self): print "object A2" A1() B1() b.py : from a import A2 class B1(object): def __init__(self): print "object B1" A2() When

What is the best architecture for building a .NET website that may also support a native mobile app in the future?

丶灬走出姿态 提交于 2020-07-08 02:10:28
问题 I am in the planning phases of building a new ASP.NET website. The website is really a transactional web application where the users will log in and perform basic CRUD data operations. For right now this website will be accessible through a traditional desktop browser and a mobile browser. For the mobile browser we will build a separate scaled down version of the site. In the future we may decide to create native mobile applications for Android or iOS devices also. So the question I have is

Strategy or Command pattern?

纵饮孤独 提交于 2020-06-24 14:47:32
问题 Assuming I have a list of financial transactions, I have a need to execute a list of validation rules against those transactions. An example would be I have a transaction to purchase a product, however first I need to validate that the account in the transaction has enough available funds, that the product is not sold out etc. As a result of these many rules the transaction will be marked as rejected, as well as an error code should be specified. Naturally I am thinking towards fronting my

Definition/meaning of Aliasing? (CPU cache architectures)

爱⌒轻易说出口 提交于 2020-06-24 11:26:12
问题 I'm a little confused by the meaning of "Aliasing" between CPU-cache and Physical address . First I found It's definition on Wikipedia : However, VIVT suffers from aliasing problems, where several different virtual addresses may refer to the same physical address . Another problem is homonyms, where the same virtual address maps to several different physical addresses. but after a while I saw a different definition on a presentation( ppt ) of DAC'05: "Energy-Efficient Physically Tagged Caches

Is Django for the frontend or backend? [closed]

[亡魂溺海] 提交于 2020-06-24 02:19:46
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 8 years ago . I often see people claiming their backend is implemented in Django, but isn't Django supposed to be for the frontend? I'd assume the backend refers to the business logic where the frontend refers to the

Is one TaskManager with three slots the same as three TaskManagers with one slot in Apache Flink

旧城冷巷雨未停 提交于 2020-06-17 02:53:25
问题 In Flink, as my understanding, JobManager can assign a job to multiple TaskManagers with multiple slots if necessary. For example, one job can be assigned three TaskManagers, using five slots. Now, saying that I execute one TaskManager(TM) with three slots, which is assigned to 3G RAM and one CPU. Is this totally the same as executing three TaskManagers, sharing one CPU, and each of them is assigned to 1 G RAM? case 1 --------------- | 3G RAM | | one CPU | | three slots | | TM | -------------

Is one TaskManager with three slots the same as three TaskManagers with one slot in Apache Flink

依然范特西╮ 提交于 2020-06-17 02:53:05
问题 In Flink, as my understanding, JobManager can assign a job to multiple TaskManagers with multiple slots if necessary. For example, one job can be assigned three TaskManagers, using five slots. Now, saying that I execute one TaskManager(TM) with three slots, which is assigned to 3G RAM and one CPU. Is this totally the same as executing three TaskManagers, sharing one CPU, and each of them is assigned to 1 G RAM? case 1 --------------- | 3G RAM | | one CPU | | three slots | | TM | -------------

Keeping services in sync in a kafka event driven backbone

断了今生、忘了曾经 提交于 2020-06-17 02:31:11
问题 Say I am using Kafka as the event-driven backbone for all my microservices in my system design. Many microservices use the events data to populate their internal databases. Now there is a requirement where I need to create a new service and it uses some events data. The service will only be able to consume events after the time it comes live and hence, won't have a lot of data that it missed. I want a strategy such that I don't have to backfill my internal databases by writing out scripts.

Keeping services in sync in a kafka event driven backbone

社会主义新天地 提交于 2020-06-17 02:30:08
问题 Say I am using Kafka as the event-driven backbone for all my microservices in my system design. Many microservices use the events data to populate their internal databases. Now there is a requirement where I need to create a new service and it uses some events data. The service will only be able to consume events after the time it comes live and hence, won't have a lot of data that it missed. I want a strategy such that I don't have to backfill my internal databases by writing out scripts.

Data Governance solution for Databricks, Synapse and ADLS gen2

送分小仙女□ 提交于 2020-06-10 06:45:31
问题 I'm new to data governance, forgive me if question lack some information. Objective We're building data lake & enterprise data warehouse from scratch for mid-size telecom company on Azure platform. We're using ADLS gen2, Databricks and Synapse for our ETL processing, data science, ML & QA activities. We already have about a hunder of input tables and 25 TB/yearly. In future we're expecting more. Business has a strong requirements incline towards cloud-agnostic solutions. Still they are okay