Giter Club home page Giter Club logo

verticalslicearchitecture's Introduction

Hi, I'm Nadir ๐Ÿ‘‹ ๐Ÿ‘จโ€๐Ÿ’ป

Iโ€™m Nadir Badnjevic, Software Architect and Engineer with over 17 years of comprehensive experience designing, developing and deploying various commercial software architectures on the full stack. Focused on creating great software products and teams that deliver them.

Specialties

Software architecture and design, Microsoft stack .NET, Azure, AWS, Clean code, Clean architecture, Event-driven architectures, DDD, leading teams, coaching and mentoring, engineering management, collaborating with customers and stakeholders, strategic product development.

Find me around the web:

verticalslicearchitecture's People

Contributors

nadirbad avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

verticalslicearchitecture's Issues

Why did you choose to seperate the Infra - Configurations?

Hello!

I was wondering why you made the decision to group the IEntityConfiguration types in the /Infrastructure/configuration/ while everything else pertaining to the ToDoItem was in the Feature area. I would think that the IEntityConfiguration files are included in the Feature area

Project split

Hi @nadirbad, I'm wondering why you have split the code in two projects like API and Application. I would expect to see the controller in the API project, but we find it in the Application project.

Thanks!

Proyect IntegrationTests

Hello,

first of all, thank you very much for creating a template with this type of software architecture.
I downloaded the template and everything works great, but there's a problem in the integration test project with the Testing class.
The Startup class doesn't exist in the API. I understand that when you migrated it from .NET 6.0 to 7.0, this issue might have been left pending.
This is the file location: VerticalSliceArchitecture/tests/Application.IntegrationTests/Testing.cs

Thanks

Discussion

Of all examples about VSA on the internet, I found this one to be the most relevant (at least from my POV, obviously), so thank you for this !

My only question is why do you use Mediator ?

Otherwise said, what is the benefit of Mediator instead of directly implementing in the controller (or in a dedicated class but without the IRequestHandler) ?

public class ExportTodosController : ApiControllerBase
{
    private readonly ApplicationDbContext _context;
    private readonly IMapper _mapper;
    private readonly ICsvFileBuilder _fileBuilder;
    
    [HttpGet("/api/todo-lists/{id}")]
    public async Task<FileResult> Get(int id)
    {
        var records = await _context.TodoItems
                .Where(t => t.ListId == request.ListId)
                .ProjectTo<TodoItemRecord>(_mapper.ConfigurationProvider)
                .ToListAsync(cancellationToken);
        var csv = _fileBuilder.BuildTodoItemsFile(records);

        return File(csv, "text/csv", "TodoItems.csv");
    }
}

Doing this you still have testability, isolation from other features / coupling inside the slice, so why bother with an additional technical component ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.