All fields

“Architecture & Design Patterns” in Information Technology

47 questions across 3 technologies.

Information Technology

47 questions in 3 technologies

#QuestionTechnologyTopicLevel
1What is Domain-Driven Design (DDD), and how do its concepts of entities, value objects, and aggregates apply to a Node.js codebase? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
2What is a layered (n-tier) architecture in a Node.js/Express application, and what are its typical layers? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
3What is a Hexagonal Architecture (Ports and Adapters), and what specific benefit does it provide for a Node.js API? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
4How is the Factory pattern commonly applied in Node.js applications, and what problem does it solve? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
5What is the Singleton pattern, and what are the specific risks of using it in a Node.js application? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
6What is Dependency Injection, and how is it typically implemented in Node.js given the language has no built-in DI container? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
7What is the Strategy pattern, and how would you apply it to support multiple payment providers in a Node.js checkout service? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
8What is a Facade pattern, and how might it be used to simplify a Node.js application's interaction with several third-party SDKs? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
9What is the Saga pattern, and how does it manage distributed transactions across multiple Node.js microservices? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
10What is the Module pattern in Node.js, and how does it enable encapsulation? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
11What is the Middleware (Chain of Responsibility) pattern as implemented by Express, and how does the 'next()' function drive it? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsIntermediate
12What is the Repository pattern, and how does it help decouple business logic from a specific database technology? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
13What is the Observer pattern, and how does Node.js's EventEmitter class implement it natively? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
14What is a Circuit Breaker pattern, and why is it important when a Node.js service calls an unreliable downstream dependency? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
15What is the CQRS (Command Query Responsibility Segregation) pattern, and when is it appropriate to introduce in a Node.js system? Node.js › Architecture & Design PatternsNode.jsArchitecture & Design PatternsAdvanced
16How should a large, complex PHP application evolve its architecture beyond basic MVC to maintain organization and testability as the codebase and team grow significantly? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPAdvanced
17How should a large scale application design its file upload architecture to handle high volumes of uploads reliably, including virus scanning and offloading storage to a dedicated service? PHP › File Upload HandlingPHPFile Upload HandlingAdvanced
18What are the key benefits and tradeoffs of splitting a Node.js monolith into microservices? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsIntermediate
19What is an API Gateway, and what role does it play in front of a collection of Node.js microservices? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsIntermediate
20How does distributed data ownership work in microservices -- specifically, why shouldn't multiple services share direct access to the same database? Node.js › Microservices Architecture with Node.jsNode.jsMicroservices Architecture with Node.jsAdvanced
21What is the role of a Controller in the MVC pattern, and what responsibilities should typically be kept out of a controller to maintain good separation of concerns? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPBeginner
22How do Models in MVC represent both data structure and business logic, and how does this differ from a Model being purely a simple database representation? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPIntermediate
23How would you design a multi-channel notification system in Node.js that can send the same logical notification via email, SMS, or push depending on user preference? Node.js › Email & NotificationsNode.jsEmail & NotificationsAdvanced
24How does Kafka's architecture (topics, partitions, consumer groups) differ fundamentally from RabbitMQ's queue-based model? Node.js › Message Queues (RabbitMQ & Kafka)Node.jsMessage Queues (RabbitMQ & Kafka)Advanced
25How does the concept of a Service Layer complement traditional MVC by providing an additional place for complex business logic that spans multiple models? PHP › MVC Architecture in PHPPHPMVC Architecture in PHPAdvanced
26How would you design configuration for a multi-tenant application where each tenant needs different settings resolved at runtime? .NET › Configuration & Options.NETConfiguration & OptionsAdvanced
27How can PHP's interface based type hinting combined with abstract classes support building a genuinely extensible plugin architecture within an application? PHP › Interfaces & Abstract ClassesPHPInterfaces & Abstract ClassesAdvanced
28What is the difference between a relational (SQL) database and a NoSQL database, and how does this affect a Node.js application's data layer? Node.js › DatabasesNode.jsDatabasesBeginner
29Why should an application typically avoid storing uploaded files directly on the same server instance that runs the web application? Node.js › File Uploads & Media ProcessingNode.jsFile Uploads & Media ProcessingBeginner
30What is a feature flag, and how would you implement one in a Node.js application to control a new feature's rollout? Node.js › Cloud & DevOpsNode.jsCloud & DevOpsIntermediate
31What is middleware in Express, and what is the significance of the order in which middleware is registered? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
32What is the difference between application-level, router-level, and route-specific middleware in Express? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareIntermediate
33What is the purpose of GraphQL fragments, and how do they help avoid duplicating field selections across multiple queries? Node.js › GraphQLNode.jsGraphQLIntermediate
34What is a database migration, and how do tools like Sequelize's migration system or a standalone tool like Knex help manage schema changes over time? Node.js › Databases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Node.jsDatabases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Intermediate
35How would you structure application configuration to support multiple environments (development, staging, production) cleanly? Node.js › Environment Variables & ConfigurationNode.jsEnvironment Variables & ConfigurationIntermediate
36How do GraphQL Mutations differ from Queries, and how would you define one to create a new resource? Node.js › GraphQL with Node.jsNode.jsGraphQL with Node.jsIntermediate
37When would you choose a message queue/broker (RabbitMQ or Kafka) over simply making direct HTTP calls between Node.js microservices? Node.js › Message Queues (RabbitMQ & Kafka)Node.jsMessage Queues (RabbitMQ & Kafka)Intermediate
38What is the difference between vertical and horizontal performance optimization strategies for a Node.js application, and how do you decide which to pursue first? Node.js › Performance Optimization & ProfilingNode.jsPerformance Optimization & ProfilingIntermediate
39How do you organize namespaces effectively in a larger application to reflect logical groupings such as models, services, and controllers? PHP › Namespaces & AutoloadingPHPNamespaces & AutoloadingIntermediate
40What is database replication, and how does a Node.js application typically route reads to replicas while sending writes to a primary? Node.js › DatabasesNode.jsDatabasesAdvanced
41What is database sharding, and what problem does it solve that replication alone doesn't address? Node.js › DatabasesNode.jsDatabasesAdvanced
42What is a database deadlock, and how might it occur between two concurrent transactions in a Node.js application? Node.js › DatabasesNode.jsDatabasesAdvanced
43How would you structure a large Express application using the Router to organize routes into feature-based or resource-based modules? Node.js › Express & MiddlewareNode.jsExpress & MiddlewareAdvanced
44How would you implement GraphQL schema stitching or federation to compose a single unified GraphQL API from multiple underlying microservices? Node.js › GraphQLNode.jsGraphQLAdvanced
45What is the N+1 query problem in the context of an ORM like Mongoose or Sequelize, and how do you avoid it? Node.js › Databases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Node.jsDatabases & ORMs (MongoDB/Mongoose, SQL/Sequelize)Advanced
46How would you implement a custom event that carries multiple pieces of data, and what's the convention for structuring the emitted payload? Node.js › Events & EventEmitterNode.jsEvents & EventEmitterAdvanced
47How would you implement distributed tracing across multiple Node.js microservices using OpenTelemetry? Node.js › Logging & MonitoringNode.jsLogging & MonitoringAdvanced