Book Image

Expert Delphi - Second Edition

By : Marco Cantù, Paweł Głowacki
Book Image

Expert Delphi - Second Edition

By: Marco Cantù, Paweł Głowacki

Overview of this book

Master Delphi, the most powerful Object Pascal IDE and versatile component library for cross-platform native app development, by harnessing its capabilities for building natively compiled, blazingly fast apps for all major platforms, including Android, iOS, Windows, Mac, and Linux. Expert Delphi begins with a quick overview of Delphi, helping you get acquainted with the IDE and the Object Pascal language. The book then quickly progresses to more advanced concepts, followed by the architecture of applications and the FireMonkey library, guiding you through building server-side services, parallel programming, and database access. Toward the end, you’ll learn how to integrate your app with various web services and deploy them effectively. By the end of this book, you’ll be adept at building powerful, cross-platform, native apps for iOS, Android, Windows, and macOS—all from a single code base.
Table of Contents (21 chapters)
Free Chapter
1
Part 1: Building Blocks
6
Part 2: Going Mobile
12
Part 3: From Data to Services
19
Index

Delphi and multi-tier architectures

In the previous chapter, we saw that you can use web services and cloud-hosted web APIs to create an information system where apps running on different devices can connect to the same data store. Not only you can use Delphi to integrate with existing web services, but you can also build your own.

Why would you build mobile backend services? Multi-tier architectures have a lot of benefits. But what exactly is a multi-tier solution? It’s an architecture in which client apps communicate with server apps to access underlying resources. Compared to a client/server application, which has the user interface (UI), the business logic, and the database access all combined (even if possibly logically divided into different modules, as we did for the todo app in Chapter 10), in a multi-tier scenario where the database access lives on the server, along the core of the business logic, the client app has only the UI and the limited business logic required...