版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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
車輛系統(tǒng)戰(zhàn)Season
1
Final-實戰(zhàn)課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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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項目進行系統(tǒng)優(yōu)化?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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024中國銀行國家助學貸款保證合同
- 2024室內裝修施工合同范本模板
- 2024年度軟件開發(fā)及許可協(xié)議
- 2024年度知名品牌餐飲連鎖加盟合同
- 成本制勝課件教學課件
- 2024年度供貨合同范本
- 2024年大型風力發(fā)電項目施工合同
- 2024年度市場營銷策劃與執(zhí)行合同
- 2024年建筑工地安全協(xié)議
- 2024年度醫(yī)療服務提供合同
- 人教版數學五年級上冊課本習題(題目)
- 鋼筋合格證(共6頁)
- BIM技術全過程工程管理及應用策劃方案
- 彎扭構件制作工藝方案(共22頁)
- 水利工程填塘固基、堤身加固施工方法
- 中醫(yī)針灸的骨邊穴怎樣定位
- 人教版八年級上冊英語單詞表默寫版(直接打印)
- 電脫水、電脫鹽講解
- 江西省科技創(chuàng)新平臺建設(PPT課件)
- 違約損失率(LGD)研究
- 溝槽回填施工方案(完整版)
評論
0/150
提交評論