Can DDD entity rely upon infrastructure library?

Suppose I want this on my User entity:


That means:

public void createNewSecurityToken() {   var buffer = new byte[32];   new RNGCryptoServiceProvider().GetBytes(buffer);  // <--- here's the issue   this.Token = Convert.ToBase64String(buffer); } 

This is not a DI dependency, just a class from the infrastructure. But does that “break” DDD?

The alternative is this:

user.setSecurityToken(token);   // pass it in (probably from a domain service) 

But that leads to anemic entities.

Which is the preferred DDD approach, and what considerations should I take into account when faced with this sort of design decision?

Infrastructure – different variants. What are the advantages of the virtualization layer?

The infrastructure that I see most often:
First infrastructure

Is the infrastructure below not simpler and better?
Is this the future or am I wandering the forest?
Second infrastructure

The first infrastructure.
– Many layers use more resources?
– Looking at the whole is more difficult and requires knowledge of more tools?
– In which layer should the applications be scaled?
– It’s harder to find performance errors?

Considering how computer hardware and I / O devices work, more conscious allocation of resources should give better performance than VM (e.g. join Intel Xenon and Pentium 4 then assign VCPU to different machines)

Second infrastructure
– At the kubernetes level, we can also scale horizontally depending on the needs, we can also set resources for every container.
– OS, thanks to Linux users accounts, allows for secure administration.

I have one doubt which is better. Applications that grow over time and need to keep increasing the space on the disks.

How to design virtualization infrastructure

I have a university assignment that asks you to design the infrastructure for a company that wants to virtualize their servers.

It asks for number of hosts required, number of VMs running on each and what each is running, cpu, ram, storage etc.

It provides you with a list of their current non-virtualized servers to work from (shown at end of post).

I don’t understand how I’m supposed to design the infrastructure without running any tests first to determine how much cpu/ram/storage each server needs. Wouldn’t it just be a complete guess?

  • 2 x Active Directory domain controllers on Windows Server 2008 R2, (2 x Xeon 3.6GHZ, 8GB RAM, 140GB HDD). These servers are used for authentication and authorisation;
  • 3 x SQL Server 2003 database servers on Windows Server 2003 (2 x Xeon 2.8GHZ, 4GB RAM, 500GB RAID-5 array). These servers are used for database operations for Active Directory, Exchange, SharePoint and their Client Design application;
  • 1 x Exchange 2007 email server on Windows Server 2008 R2 (2 x Xeon 3.6GHZ, 8GB RAM, 250GB RAID-1 array);
  • 4 x Windows Server 2003 File and Print servers (2 x Xeon 2.8GHZ, 4GB RAM, 250GB RAID-1 array);
  • 1 x SharePoint 2007 server on Windows Server 2008 R2 (2 x Xeon 3.6GHZ, 16GB RAM, 250GB RAID-1 array);
  • 1 x Client Design and CRM (Customer Relationship Management) application server on Windows Server 2008 R2 (2 x Xeon 3.6GHZ, 8GB RAM, 250GB RAID-1 array);
  • 2 x Red Hat Enterprise 5 Linux servers running Apache and TomCat (2 x Xeon 2.8GHZ, 16GB RAM, 140GB HDD).

Transfer AWS to own infrastructure

Our company wants to use AWS services, but is worried about the future. What happens when Amazon discontinues a service, what if prices rise too much, what if a customer wants to move the services from the cloud to his own infrastructure?

Is it possible to move all services to an own network? Only some? Which ones? How much effort is it?

What are Infrastructure Logic and Application Logic and the others terms something come with ‘- logic’?

I’m really confused by those logic terms. I started looking up with Business logic.

And I realized there are a lot of words related to the term.

And also found there are Multitier Architecture and its concept seems very alike.

Now, I am kind of know Business Logic but as a programmer, not a planner or a PM, sometimes, we say "Write the code in the business logic part." or "We'd better to put in the business logic part". Then, I don’t know where exactly he is talking about.

I reckon they are not very technical terms. But they are used quite a lot in real-world.

Here are terms that I am confused with.

  • Business logic
  • Business rule
  • Infrastructure logic
  • Application logic
  • Presentation logic
  • Data logic
  • Domain logic

What’s the best infrastructure to set permissions to user roles that controls who can see which Nodes and which Views?

I’m building a Drupal 8 website that needs pretty stringent permissions. I have already created the (4) user roles for the site, but not sure the best way to handle viewing permissions. I see that when creating Views it is pretty simple to assign which roles have permission to view, but what about for my content that is straight up page/nodes?

E-commerce Infrastructure for Vendor/Manufacturer

Hi – new here to the forum, so please let me know if I am posted in the wrong area.

I work for a fine jewelry wholesaling and manufacturing company in the US. Over the past 2 years, we've been growing out our e-commerce business, as its been proving to be a viable sales channel for us.

What we do is simple. We have thousands of SKUs that we stock in our office. We also manufacture new products overseas. These products are then listed on a variety of sites. We sell through Amazon, Amazon…

E-commerce Infrastructure for Vendor/Manufacturer

‘Infrastructure’ and ‘Business-Facing Application’ are types of …?

In my web ui design, I need to have options for selecting various types of IT resources.

I have options like…

  • ‘Operational Scope’ – cloud vs on-premise.
  • ‘Development Style’ – agile vs waterfall.

Does a general taxonomy for this type of thing exist?

I got stumped on one requirement where the user has to determine whether a certain resource is “Infrastructure” vs a “Business-Facing Application”. What concept encompasses both of these options?