architecture

C# - Should an object be responsible for creating a history object when it changes something like status?

不羁的心 提交于 2021-02-18 15:25:23
问题 This is more of an architecture/best practices question than anything else, so please feel free to add your two cents. I know i stated status in the title, but this goes for any basic property of an object. I think the account example below will help demonstrate my question a little better than status. Here is a sample Account object: public class Account { private IList<Transaction> _transactions; public AddTransaction(trans as Transaction) { _transaction.add(trans) } } Now lets say I want

Store user data in auth server or resource server? Or both?

痞子三分冷 提交于 2021-02-18 11:33:30
问题 This is my first time setting up OpenID Connect with IdentityServer 4 and AspNetIdentity and I was hoping someone could demystify the part about storing user data. What I've read so far is that user data should be stored in the Auth db that is connected to the auth server, but I'd really like to store user data in the resource db too that is connected to the resource server. I currently have a data model that looks like this: I have omitted many of the fields for both User and Event, but you

Name of “notification-and-check” pubsub architecture?

余生颓废 提交于 2021-02-17 03:28:26
问题 Basic pubsub architecture question. At a high level, when designing pubsub, I sometimes face a choice between two architectures: Publish mutations or "new-state". Some DB state is mutated, and publishers notify of that change via pubsub. But they include enough information in the message so that the subscriber doesn't need to do a look-up on the DB. Imagine the subscriber has a cache of the DB. It could receive the mutations or new-state, and update its cache without doing a look-up.

Notification and News Area by using Redis

纵然是瞬间 提交于 2021-02-11 18:16:17
问题 I have a photo album system which people can upload photos and interract with other users. I use mySql and Redis to handle traffic and store the data. In my system, users can follow other users, like photos, comment on them and upload new photos. In this scenario, I want to show all events from user's followings on their wall (like facebook timeline). For example, I follow users 30,40,50,60,70 and 80 ids. Whenever they add a new photo, I would like to see them on my wall. The problem is this

GDPR: encyption at-rest instead of data lookup tables [closed]

情到浓时终转凉″ 提交于 2021-02-11 14:44:58
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 12 days ago . Improve this question Encryption at-rest - is storing data inside your storage/database in encrypted format. During processing you need to decrypt data every time, calculate something and then encrypt everything back (encryption is managed by storage). Does encryption at-rest resolve

Xcode - ld: symbol(s) not found for architecture arm64

一个人想着一个人 提交于 2021-02-10 15:17:29
问题 I'm trying to compile my app through Xcode, everything has always worked, but suddenly today I return this error that makes the build fail. I attach the complete log of the error. Thanks for your help. Undefined symbols for architecture arm64: "_chkstk_darwin", referenced from: PTArchiveWriter::write(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::basic_istream<char, std::1::char_traits<char> >&, std::1::basic_string<char, std::1::char_traits

Xcode - ld: symbol(s) not found for architecture arm64

元气小坏坏 提交于 2021-02-10 15:15:25
问题 I'm trying to compile my app through Xcode, everything has always worked, but suddenly today I return this error that makes the build fail. I attach the complete log of the error. Thanks for your help. Undefined symbols for architecture arm64: "_chkstk_darwin", referenced from: PTArchiveWriter::write(std::1::basic_string<char, std::1::char_traits<char>, std::1::allocator<char> > const&, std::1::basic_istream<char, std::1::char_traits<char> >&, std::1::basic_string<char, std::1::char_traits

Authorization architecture in microservice cluster

荒凉一梦 提交于 2021-02-08 11:21:43
问题 I have a project with microservice architecture (on Docker and Kubernetes), and 2 main apps are written in Python using AIOHTTP and Django (also there are and Ingress proxy, static files server, a couple more made with NginX). I'd like to split these Python apps into separate smaller microservices, but to accomplish this probably I also should move authentication in a separate app. But how can I do this? Probably I should also add that I'm asking not about specific authentication methods like

Estimating Cycles Per Instruction

早过忘川 提交于 2021-02-08 08:15:11
问题 I have disassembled a small C++ program compiled with MSVC v140 and am trying to estimate the cycles per instruction in order to better understand how code design impacts performance. I've been following Mike Acton's CppCon 2014 talk on "Data-Oriented Design and C++", specifically the portion I've linked to. In it, he points out these lines: movss 8(%rbx), %xmm1 movss 12(%rbx), %xmm0 He then claims that these 2 x 32-bit reads are probably on the same cache line therefore cost roughly ~200

Estimating Cycles Per Instruction

混江龙づ霸主 提交于 2021-02-08 08:14:12
问题 I have disassembled a small C++ program compiled with MSVC v140 and am trying to estimate the cycles per instruction in order to better understand how code design impacts performance. I've been following Mike Acton's CppCon 2014 talk on "Data-Oriented Design and C++", specifically the portion I've linked to. In it, he points out these lines: movss 8(%rbx), %xmm1 movss 12(%rbx), %xmm0 He then claims that these 2 x 32-bit reads are probably on the same cache line therefore cost roughly ~200