Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created October 11, 2025 16:09
Show Gist options
  • Select an option

  • Save AdamBien/c15cc2ca8533d980525a0fb790105b4a to your computer and use it in GitHub Desktop.

Select an option

Save AdamBien/c15cc2ca8533d980525a0fb790105b4a to your computer and use it in GitHub Desktop.
140thAirhacksQ&A.md
@muchiri08
Copy link

In the bce pattern, where do you place the global exception handling code? eg if I have booking and payment packages and I need to handle exception thrown in a central place(maybe switch(ex) return to user what happened), where will all these be?

This one is about entities and dtos. The usual talk I have heard is entity classes should not be used to transfer data we should use dtos. Eg if we are having an entity User, in the create user resource we should use like UserRequest dto, then map to user afterwards. Is this cargo cult or are there any valid reasons as to why most people say this? I have seen this in spring boot alot.

@haydenjones
Copy link

In your BCE design, in the Example: User Management, you have...

boundary - REST endpoints, Custom Elements, Lambda function handlers

Can you give an example of a Lambda Function Handlers? (Are we talking about AWS here?)

Can you also define what counts as a Custom Element? Are we talking about objects that are part of the business domain but don't fit within the Entity package? For example, if we are having a BCE for buying a plane ticket, would the data in a search form to find a flight be an example of a Custom Element?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment