business advice

Discussion in ‘Starting a Business’ started by abumax, Jan 26, 2021 at 2:24 PM.


  1. abumax

    abumax




    uix_expand



    uix_collapse

    New Member


    Joined:
    Today
    Messages:
    4
    Likes Received:
    0

    I didn’t know what to do in my life either, but this Man changed my life. Follow this link and can change your life.
    https://bit.ly/3prt8k4
    This is one of the best courses on the internet right now, and it takes off 100% for free or paid traffic. Sit down before it’s too late. https://bit.ly/3prt8k4

     

    #1


    abumax,
    Jan 26, 2021 at 2:24 PM

Share This Page

Business advice

Discussion in ‘Growing and Managing a Business’ started by abumax, Jan 26, 2021 at 2:29 PM.


  1. abumax

    abumax




    uix_expand



    uix_collapse

    New Member


    Joined:
    Today
    Messages:
    4
    Likes Received:
    0

    I didn’t know what to do in my life either, but this Man changed my life. Follow this link and can change your life.
    https://bit.ly/3prt8k4
    This is one of the best courses on the internet right now, and it takes off 100% for free or paid traffic. Sit down before it’s too late. https://bit.ly/3prt8k4

     

    #1


    abumax,
    Jan 26, 2021 at 2:29 PM

Share This Page

Where should “query” business logic be placed in Domain-driven design?

System description

This is a simple eCommerce application containing a Products inventory managed by an Admin. The Products in inventory/repository will show in the User App. Admin has the ability to mark ON/OFF a Product. ON = display in User App, OFF = do not display. Products are maintained in a single table (Products) in database.

This system is built (read: attempted) on DDD principles.
The Products data in db is accessed in code via .NET Entity Framework.
There are two different Applications (Admin App and User App) created.

  1. Admin App can see ALL Products.
    1. Domain name = Admin.
    2. Does the simple CRUD operations.
    3. Ignoring other setup here as it is pretty straightforward.
  2. User App should only see “ON” Products.
    1. Domain name = StoreView. (FYI – Entities from Admin domain are not mixed/reused here.)
    2. AggregateRoot = NONE. I realize that UserApp cannot modify a Product. So, decided to create Product as a DTO/POCO class.
    3. Repository = IProductRepository, has GetProducts().

My Problem

Where to place this (ON/OFF) “business logic”? (BTW, this is a business logic, right? OR is it an “application logic”?)
According to DDD, business logic should be maintained in the Domain layer. However, this is a “query” (product.Status == “ON”). Where should this logic be put – Domain Entity, Domain Service, Repository or Application?

I found these two questions closest to my problem, but I can’t find the answer, alas.
Handling Business Logic/Validation Race Conditions
How to completely avoid business logic in DAL?

Approach I – Query in Repository

Write the query business logic in IProductRepository, e.g.

public IEnumerable<Product> GetProducts()
{
    return db.Products.Where(p => p.Status == "ON").ToList();
}

Disadvantage: This does not look like how to do things in DDD.

Approach II – Query in Application Layer

Get ALL Products from repository, and then apply condition in Application Service/Controller/somewhere like that.

Disadvantage: ALL Products will be loaded in memory and then filtered. Also, I am not sure if this conforms to DDD.

Approach III – Query in an Aggregate Root

Have an AggregateRoot, say, Store. Store contains a property for Products. Get entire Store, including ALL Products from repository, and the “filtering” happens in Products’ getter.

ICollection<Product> _products;
ICollection<Product> Products
{
    get { return _products.Where(p => p.Status == "ON").ToList(); }
    private set { _products = value; }
}

Disadvantage: ALL Products will be loaded in memory. Also, keeping ALL Products throughout Store entity’s life-time seems really odd.

Approach IV – Maintain two separate Product tables for the two domains

Maintain two separate tables for Products, maybe in two different schemas: admin.Products and storeview.Products.
admin.Products will be populated by Admin users.
Raise a DomainEvent when Status is updated for a Product.
A Domain/Application EventHandler subscribed to the above event will create/update storeview.Products table.
NO query logic required in StoreView domain or “UserApp”.

Disadvantage: Additional complexity and infrastructure overhead of maintaining two separate tables in db.

Question

What is the most-appropriate solution, in terms of DDD, strictly?

Which business is good for women?

People are doing different types of Business according to their interest and needs. There are some women who have good knowledge to start a business but because of financial problems they can’t start a business on large scale.

Which business is best for women which they can start with less investment?

I will do 50 USA/UK/Australia/Canada Local Citations or Local SEO Business Listings. for $5

I will do 50 USA/UK/Australia/Canada Local Citations or Local SEO Business Listings.

I am a Digital Marketer. I am expert in Local SEO Citations. Local Citations are the most effective way to Rank Your Business or Website.

What I will be Do In Service ?

  • I Will create top manual Local seo citations
  • 100% permanent and live links
  • No duplicate link
  • Quality Work
  • 100% Satisfaction Guaranteed
  • Fast delivery
  • White Hat 100% Manual work
  • NAP Constant for ALL Citations
  • expected

Why You Choose Me ?

  • All citations live/approved link.
  • 100% Money-back guarantee
  • 24/7 days service and support.
  • Quality first
  • On-time Delivery
  • Do not take more work at a time
  • Full Reports Submission (excel format)
  • 100% Satisfied Customers.
  • I trust Long Term relationship

Order Now

.(tagsToTranslate)Localcitations(t)Locallistings(t)Localseo(t)Local(t)Citations(t)Offpageseo

I have hundreds of storefront business domains want to sell for cheap

I have about 200 of them on namecheap and would like to sell them all. They were domains that belonged to Pizza shops, barbershops, beauty s… | Read the rest of https://www.webhostingtalk.com/showthread.php?t=1835834&goto=newpost

Facebook business page scraping – Contacts, locations

Hi! 

I’d like to scrape all business page from one selected facebook category and after grab datas (business name, city, country, phone number, whatsapp number, e-mail) which page was active at the last 180 days.
I think need custom data grabber but I cannot grab locations. I was tryed based on this video: https://www.youtube.com/watch?v=X3Ep-NXg…tsLoopline 

If you can help me, please let me know! Thanks!

Register new business

Hello Guys,
I have been working in a Digital Agency for 2 years, Due to the current pandemic situation across the globe, I am working from home
and now, I was thinking of changing my pace in my career and decided to set up an own office business for a digital agency in my hometown, I searched online on how to register a new business online and came across a couple of registrations of websites. Every website has different procedures, and it is very much confusing. I would really appreciate it if anybody could help me by advising me on the above.

Waiting for your positive reply
Thank You.

 

Nexelit – Multipurpose Website & Business Management System CMS | Nulled Scripts Download

Nexelit Multipurpose Website & Agency Business CMS is the perfect agency business or any kind of website with this PHP Script. Nexelit is a better way to present your business, corporate website, construction website, interior, agency, events, event ticket selling, donation website, crowdfunding, fund rising, job posting, manage your customer, quotation, clients feedback, product selling, digital product selling, physical product…

.

Is risks measure of success in business or Investment?

We are fully aware that every business comes with risk in it but the level risks and types of risks also differ from one business to another or investment as the case may be. If there a guarantee that if you take a higher risk in Investing or business you will make much gain if you succeed or management is the secret behind success?.