Java8设计模式最佳实战-设计模式概述(第五天学习记录)

《一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码》点击传送门,即可获取!

Explaining the front controller pattern

解释前控制器模式

Implementing the front controller pattern

实现前端控制器模式

Explaining the application controller pattern

解释应用程序控制器模式

Implementing the application controller pattern

实现应用程序控制器模式

Explaining the presentation tier

解释演示层

The Java EE platform is a distributed multitiered application model that has three widely

javaee平台是一个分布式的多层应用程序模型,它有三个广泛的

used common tiers. These tiers are the presentation tier (or web tier), the business tier, and

使用通用层。这些层是表示层(或web层)、业务层和

the integration tier (or EIS tier).

集成层(或EIS层)。

The presentation tier, also known as the web tier, contains the components that create a

表示层,也称为web层,包含创建

web application. This tier has many components that use the HTTP protocol, construct

web应用程序。这个层有许多使用HTTP协议的组件,construct

views and interfaces for users, and provide a web service. These components are called web

为用户提供视图和接口,并提供web服务。这些组件称为web

components. There are two types of presentation tier:

组件。有两种类型的表示层:

Presentation-oriented tier: This type of presentation tier contains the

面向表示层:这种类型的表示层包含

components to construct an interactive web page and dynamic content using

组件来构造交互式网页和使用

HTML and XHTML. These components are JavaServer Faces technology, Java

HTML和XHTML。这些组件是JavaServer Faces技术,Java

Servlet technology, and JavaServer Page technology, which allow us to construct

Servlet技术和JavaServer页面技术,它们允许我们构造

an interactive web page.

一个交互式网页。

Server-oriented tier: This contains the components to construct an endpoint of a

面向服务器层:包含用于构造

web service. These components are JAX-RS and JAX-WS.

网络服务。这些组件是JAX-RS和JAX-WS。

The presentation-oriented tier is generally used on web applications using componentbased specifications such as JavaServer Faces technology, or web applications using actionbased Java Servlet technology as well as JavaServer Pages technology. The server-oriented

面向表示层通常用于使用基于组件的规范(如javaserverfaces技术)的web应用程序,或使用基于action的javaservlet技术以及javaserverpages技术的web应用程序。面向服务器

tier is generally used on web applications that create a REST API or web service that is

tier通常用于创建restapi或web服务的web应用程序

consumed by the client running on a mobile platform or browser. In the following diagram,在这里插入图片描述

由运行在移动平台或浏览器上的客户端使用。在下图中,

we can see how the presentation tier works

我们可以看到表示层是如何工作的

As shown in the preceding diagram, the Client sends a Request to the server; the

如上图所示,客户机向服务器发送一个请求

Presentation Tier processes the request and sends it to the Business Tier; the Business Tier

并向业务层发送请求

then sends a response to the Presentation Tier if the request is not asynchronous, and

如果请求不是异步的,则向表示层发送响应,并且

finally the Presentation Tier processes and sends the response to the Client.

总结:绘上一张Kakfa架构思维大纲脑图(xmind)

image

其实关于Kafka,能问的问题实在是太多了,扒了几天,最终筛选出44问:基础篇17问、进阶篇15问、高级篇12问,个个直戳痛点,不知道如果你不着急看答案,又能答出几个呢?

若是对Kafka的知识还回忆不起来,不妨先看我手绘的知识总结脑图(xmind不能上传,文章里用的是图片版)进行整体架构的梳理

梳理了知识,刷完了面试,如若你还想进一步的深入学习解读kafka以及源码,那么接下来的这份《手写“kafka”》将会是个不错的选择。

  • Kafka入门

  • 为什么选择Kafka

  • Kafka的安装、管理和配置

  • Kafka的集群

  • 第一个Kafka程序

  • Kafka的生产者

  • Kafka的消费者

  • 深入理解Kafka

  • 可靠的数据传递

  • Spring和Kafka的整合

  • SpringBoot和Kafka的整合

  • Kafka实战之削峰填谷

  • 数据管道和流式处理(了解即可)

image

image

《一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码》点击传送门,即可获取!
36844927)]

[外链图片转存中…(img-V4SfQ1OM-1714436844928)]

《一线大厂Java面试题解析+核心总结学习笔记+最新讲解视频+实战项目源码》点击传送门,即可获取!

  • 15
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值