Spring Tips: @Controllers: give HTTP a REST

  Рет қаралды 19,254

SpringDeveloper

SpringDeveloper

Күн бұрын

Hi, Spring fans! In this installment, we'll continue our exploration of @Controllers, and look at HTTP APIs and SSE with Spring. This time, we'll use Spring Webflux.
code: github.com/spring-tips/

Пікірлер: 12
@JentaroYusong
@JentaroYusong 2 жыл бұрын
Please make a video about a more domain-centric API design, maybe with CQ(R)S. In my experience, level 2 "REST" APIs are oftentimes just "database CRUD over HTTP", leading to leakage of implementation details into the public API of the service, which results between high coupling between a client and the server implementation, which is a malpractice in my opinion. Despite that you loose semantic information about the actions performed in your system early on, as you push the usecases of the domain upwards, basically to the clients. For example, what does a "PATCH /api/todo-items/3" mean? Has the TODOs title been changed? Has it been ticked of? Marked as irrelevant? Has someone been assigned to the task? A combination of these actions? Compare this with a more domain-centric command based API design, e.g. "POST /api/commands/tick-todo-item { id: 3 }". I personally think the latter one is far more descriptive and does not loose the domain semantics early on. Don't get me wrong here. I think a more resource based approach can be useful, e.g. for more "backing services", but the more an API is designed for a specific domain problem, that being "closer to the end users", the less REST is helpful in my opinion.
@rebelsdeveloper367
@rebelsdeveloper367 2 жыл бұрын
big word there . why limit rest or url ? the old way you dont have think one endpoint is enough . you dont need /api/read / api/update/id. This style of routing much better for web crawling but no point on intranet application.
@chrizzking
@chrizzking 2 жыл бұрын
Nerd tv at its best 👌
@30harshal
@30harshal 2 жыл бұрын
rest in peace
@nmdollarl8798
@nmdollarl8798 2 жыл бұрын
Dr Strange? magic
@zickzack987
@zickzack987 2 жыл бұрын
Umm... Sudden end. Where is the rest part?
@RajeshKumar5
@RajeshKumar5 2 жыл бұрын
Good
@wazeeharaa8100
@wazeeharaa8100 2 жыл бұрын
Man what are you coming to say
@mrrishiraj88
@mrrishiraj88 2 жыл бұрын
Hi
@sethunder332
@sethunder332 2 жыл бұрын
I think it's not for beginners.
@s1n7ax
@s1n7ax 2 жыл бұрын
that screen recording is in 144p
@juliuspms
@juliuspms 2 жыл бұрын
What a long and boring video...
Spring Tips: Reactive Summit Keynote: Here and There
34:48
SpringDeveloper
Рет қаралды 10 М.
拉了好大一坨#斗罗大陆#唐三小舞#小丑
00:11
超凡蜘蛛
Рет қаралды 14 МЛН
Чёрная ДЫРА 🕳️ | WICSUR #shorts
00:49
Бискас
Рет қаралды 6 МЛН
Cute kitty gadgets 💛
00:24
TheSoul Music Family
Рет қаралды 16 МЛН
Spring Cloud Contract (HTTP)
42:19
SpringDeveloper
Рет қаралды 16 М.
Spring Tips: Spring GraphQL
47:25
SpringDeveloper
Рет қаралды 32 М.
Spring Tips: Multitenant JDBC
38:38
SpringDeveloper
Рет қаралды 32 М.
Spring Tips: JPA
1:02:00
SpringDeveloper
Рет қаралды 20 М.
Spring Spotlight: Sustainable Evolution with Spring (SpringOne 2024)
1:21:33
Spring Tips: @Controllers: the "C" in Model-2 MVC
23:18
SpringDeveloper
Рет қаралды 7 М.
Spring Tips: IO, IO, It's Off to Work We Go
47:04
SpringDeveloper
Рет қаралды 20 М.
Spring Tips: Spring Native 0.11!
59:35
SpringDeveloper
Рет қаралды 24 М.
Spring Tips: Kubernetes Native Java
29:23
SpringDeveloper
Рет қаралды 34 М.
I phone 14 pro max Vs Samsung galaxy s23 ultra #mobiles #challenge
0:20
Portrait Video Nanny Canon EosR5 + RF85 f1.2L DS
0:58
USA News
Рет қаралды 367 М.
💀СЛОМАЛ Айфон за 5 СЕКУНД😱
0:26
Demin's Lounge
Рет қаралды 736 М.