week4-实战课车辆系统监控设计实_第1页
week4-实战课车辆系统监控设计实_第2页
week4-实战课车辆系统监控设计实_第3页
week4-实战课车辆系统监控设计实_第4页
week4-实战课车辆系统监控设计实_第5页
已阅读5页,还剩46页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written设计实CS205

Spring

Uber

车辆系统战Season

1

Final-实战课Ross

ZhangAll

content

included

on

the

Site

or

third-party

platforms

as

part

of

the

class,

such

as

text,

graphics,logos,

button

icons,

images,

audioclips, clips,

live

streams,

digital

downloads,

d

ompilations,and

software,

is

the

property

of

BitTiger

or

itscontent rs

and

protected

by

copyright

laws.Any

attempt

to

redistribute

or

resell

BitTiger

content

will

result

in

the

appropria egal

actionbeing

taken.We

thank

youin

advancefor

respecting

our

copyrighted

content.For

more

info

seeandCopyright

Policy以及在第平台课程中所产生的课程内容,如文本,图形,徽标,按钮图标,图像,所有太阁音频剪辑,

剪辑,流,数字

,数据编辑和

均属太阁或内容提供者所有并受

法保护。对于任何尝试散播或BitTiger的所属资料的行为,太阁将采取适当的法律行动。的

内容。非常感谢您尊重有关

参阅Di

erAll

the

views

and

content

expressed

here

are

solely aland

do

notreflect

opinions

of

speaker’s

employerAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenFinally,

Microservices!All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenMicroservices

&

Cloud

Native

Java

ApplicationAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenBefore

westart?Do

you

remember

Java

&

Spring

basics

in

our

class?Can

you

see

the

dots

connecting

Java...Spring...Spring

Boot...SpringCloud?DoWhyou

value

Ops

in

productionat’s

your

road

to

CTO?All

copyrightsareby

Rog

(YiZhang)

All

distributions

copy

sharing

ormodi

yontentto

beauthorized

by

Ross

Zhang

(YihaoZhang)

with

writtenSpring

Cloud

and

Netflix

OSSAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenNetflix

OSSAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenNetflix

OSSAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenSpring

Cloud

NetflixDiscoveryService

Registration

&EurekaCircuit

Breaker○

HystrixAll

copyrightsareby

Rog

(YiZhang)

All

distributions

copy

sharing

ormodi

yontentto

beauthorized

by

Ross

Zhang

(YihaoZhang)

with

writtenSpring

Boot

ActuatorOperations

in

productionAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

writtenJava

Spring

面试题精讲All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题1BrowserApplicationHTTP

500All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题2Why

did

you

use

Spring?What

are

the

benefits

of

using

Spring

Framework?What

is

DI

/IoC?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题3What

is

Spring

Boot?Why

did

you

use

Spring

Boot?Can

you

config

Spring

without

Spring

Boot?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4What

is

Transactional

annotation?How

does

Spring

handle

Transaction?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4What

is

Transactional

annotation?JPA

on

itself

does

not

provide

any

type

of

declarative

transactionmanagement.

When

using

JPA

outside

of

a

dependency

injectioncontainer,

transactions

need

to

behandled

programatically

by

thedeveloperA

developer

needs

to

get

transaction

from

entityManager,

declare

whentransaction

starts,

when

to

commit

the

transaction,

ifany

exceptionoccurs,

whether

it

needs

to

rollback

atransactionAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4What

is

Transactional

annotation?it's

repetitive

and

error

proneany

error

can

have

a

veryhigh

impacterrors

are

hard

to

debug

and

reproducethis

decreases

the

readability

ofthe

code

baseWhat

if

thismethod

calls

another

transactional

method?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4What

is

Transactional

annotation?Transactional

annotation

is

a

Spring

way

toprovide

declarativetransaction

managementBy

using

@Transactional

annotation,

it

is

mu ore

convenientandreadable,

and

is

currentlythe mended

way

to

handle

transactionsinSpring.By

using

@Transactional,

many

important

aspects

such

as

transactionpropagation

are

handled

automatically.

In

this

case

ifanothertransactional

method

is

called

by

businessLogic(),

that

method

will

havethe

option

of

joining

the

ongoing

transaction.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?PersistenceContextDatabase

TransactionThe

transactional

annotation

itself

defines

the

scope

of

a

single

databasetransaction.

The

database

transaction

happens

inside

the

scope

of

apersistence

context.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?Thepersistence

context

is

in

JPA

the

EntityManager,

implementedinternally

using

an

Hibernate

Session

(when

using

Hibernate

as

thepersistence

provider).The

persistence

contextisjust

a

synchronizer

object

that

tracks

the

stateof

a

limited

set

of

Javaobjects

and

makes

sure

that

changes

on

thoseobjects

are

eventually

persisted

back

into

the

database.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?One

Entity

Managercanbe

used

across

several

database

transactionsA

common

practice

is

to

use

the

JPA

EntityManager

is

with

the

"EntityManager

per

application

transaction"pattern.

This

is

the

most

commonway

to

inject

an

entity

managerAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?The

persistence

context

proxy

that

implemen

tityManager

is

not

theonly

component

needed

for

making

declarative

transaction

managementworkThe

EntityManager

ProxyThe

Transactional

AspectThe

TransactionManagerAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?The

EntityManager

ProxyThe

Transactional

AspectBeforeAfterThe

Transaction

Managershould

a

new

Entity

Manager

be

created?should

a

new

database

transaction

be

started?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?In

case

it

needs

to

create

a

new

transactioncreate

anew

entitymanagerbind

the

entity

manager

tothe

current

threadgrab

a

connection

fromthe

DB

connection

poolbind

the

connection

to

the

current

threadTheentity

manager

and

theconnection

areboth

bound

to

the

currentthread

using

ThreadLocal

variables.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题4How

does

Spring

handle

transaction?Entity

Manager

ProxyWhen

the

business

method

calls

for

entityManager.persist(),

thiscall

isnot

invoking

the

entity

manager

directly.Instead

the

business

method

calls

the

proxy,

which

retrieves

the

currententity

manager

from

the

thread,

where

the

Transaction

Managerput

it.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题5Checked

Except

on

VS

UncheckedExcept

onCheckedExcept

ons

are

checked

at

comp

e

t

meE.g.

IOExcept

onUncheckedExcept

ons

are

not

checked

at

comp

e

t

meErrorRunt

meExcept

onNPEClassCastExceptionArithmetic

ExceptionAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题5What

is

the

best

practice

for

handling

exceptions?All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?PerformanceScalabilityAvailabilityMonitoringSecurityAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?PerformanceRedis

cachingGeohash

based

load

balancingKafkaCassandra

as

data

storeAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?GeohashEncoding

lat/lon

points

as

strings.

The

original

intention

was

to

have

a

URL-friendly

way

of

specifying

geolocations,

but

geohashes

have

turned

out

to

bea

useful

way

of

indexing

geo-points

and

geo-shapes

in

databasesAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?GeohashDivide

the

world

into

a

grid

of

32

cells—4

rows

and

8

columns—eachrepresented

by

a

letter

or

number.

The

g

cell

covers

half

of

Greenland,

all

ofIceland,

and

most

ofGreat

Britian.

Each

cell

can

be

further

divided

intoanother

32

cells,

which

can

be

divided

into

another

32

cells,

and

so

on.

Thegc

cell

covers

Ireland

and

England,

gcp

covers

most

of

London

and

partofSouthern

England,

and

gcpuuz94k

is

the

entrance

to

Buckingham

Palace,accurate

to

about5

meters.The

longer

the

geohash

string,

the

more

accurate

it

is.

Iftwo

geohashesshare

a

prefix—

and

gcpuuz—then

itimplies

that

they

are

near

each

other.The

longer

the

shared

prefix,

the

closer

they

areAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?RedisAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?KafkaAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?KafkaAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?CassandraDecentralizedEvery

node

in

the

cluster

has

the

same

role.

There

is

no

single

point

of

failure.Data

is

distributed

across

the

cluster

(so

each

node

contains

different

data),

butthere

is

no

master

as

every

node

can

service

any

request.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?CassandraSupports

replication

and

multi

d enter

replicationReplication

strategies

are

configurable.

Cassandra

is

designed

as

a

distributedsystem,

for

deploymentof

large

numbers

of

nodes

across

multiple

d

enters.Key

features

of

Cassandra’s

distributed

architectureare

specifically

tailored

formultiple-d enter

deployment,for

redundancy,

for

failover

and

disasterrecovery.ScalabilityRead

and

write

throughput

both

increase

linearly

as

new

machines

are

added,

withno

downtime

or

interruptionto

applications.All

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?CassandraFault-tolerantData

is

automatically

replicated

to

multiple

nodesfor

fault-tolerance.

Replication

across

multiple

d

enters

is

supported.

Failed

nodes

can

be

replacedwith

nodowntime.Tunable

consistencyWrites

and

reads

offer

a

tunable

level

of

consistency,

all

the

way

from

"writesnever

fail"

to

"block

for

all

replicas

to

be

readable",

with

the

quorum

level

in

themiddleMapReduce

supportAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?ScalabilityNginxEurekaCassandraAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面试题6如何对Spring

Uber项目进行系统优化?AvailabilityHystrixAvailability

ZonesReplicated

PersistenceAll

copyrightsareby

Ross

Zhang

(Yihao

Zhang)

All

distributions

copy

sharing

or

modi

y

o

the

content

needto

beauthorized

by

Ross

Zhang

(Yihao

Zhang)with

written面

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论