Questa è la mia comprensione del Layer di applicazione :
• Implementa Logica dell'applicazione
• questo livello contiene Servizi applicativi , che vengono utilizzati da utenti esterni per parlare con la tua applicazione
• I servizi di applicazione sono operazioni a grana grossa e orchestrate che si associano direttamente a use cases (da cui anche il termine Workflow Services )
1)
Da:
Application Logic is mostly workflow logic. It is the application specific coordination of domain and infrastructure components according to the requirements of that particular application.
Let's start a company, shall we? Sapient Grey will be primarily a think tank, but with an in-house development group with the capabilities to make the visions of the core committee a reality. Our corporate motto, "Sapient Grey is People..." will be burnished in giant brazen letters alongside a customized version of Rodin's famous sculpture "The Thinker", all of which will adorn the east-facing side of our brand new ten story red granite office building.... Oh, wait. We don't have an office building yet. Okay then, so we'll hire an architect to design our office building, being sure to include a private elevator and an elaborate zen-style atrium or courtyard in the center. In the meantime, while the building is being designed and constructed, you and I and our other elite colleagues will fly ourselves to Tahiti to brainstorm Sapient Grey's visions, goals, agenda, and lay out a detailed business plan.
Our architect is creating detailed blueprints for the office building, figuring out how the plumbing will need to be laid out, how the electrical systems will be segregated and tied together, how the interoffice communication system will be organized, and how we will implement security at all levels. The systems and designs that our building architect is handling is a precise analogy to what "Application Logic" is within a web application. How security is implemented, how we will manage and access state and persistence, how we will handle storage and retrieval of data....this is application logic. Like our office building, which when complete could house and accommodate anything from an elite night club to an investment firm, the application logic is independent of the actual business logic that executes within it.
a) Le citazioni di cui sopra sono due diverse definizioni del termine Logica dell'applicazione e come tale sembra che stiano usando lo stesso termine (es. Logica dell'applicazione ) a descrivere due concetti diversi. Quindi, solo la prima definizione descrive la logica contenuta in Livello applicazione , mentre la seconda definizione descrive un diverso tipo di logica?
b) Se entrambe le definizioni descrivono la logica in Livello applicazione , allora questo non significherebbe che Livello applicazione svolge due compiti: orchestrare le operazioni che mappano direttamente a < em> use cases e l'esecuzione di logiche non correlate al business (come sicurezza, memorizzazione nella cache, ecc.)