Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我很好奇创建 3 层应用程序的最佳方法是什么,该应用程序应该在同一集群上的不同服务器上运行,在同一台服务器上运行。
是否会使用 REST 将表示层连接到逻辑层,以及连接到在 localhost 上运行的数据库?有没有这方面的框架?
您可以检查Kohana 框架来执行此操作。它具有出色的请求执行机制,您可以在其中从应用程序内部发出外部请求。