THẢO LUẬN

Em đọc bài từ lúc mới làm quen kafka năm 2022, giờ quay lại vẫn thấy hữu ích, chỗ này em xin bổ sung tí là "tại một thời điểm, một partition chỉ được đọc bởi một consumer duy nhất" -> "trong một group, tại một thời điểm, một partition chỉ được đọc bởi một consumer duy nhất" theo tài liệu https://docs.confluent.io/kafka/design/consumer-design.html

0
Jul 31st, 9:46 a.m.
<?php namespace App\Http\Middleware; use App\Http\Controllers\AppBaseController; use App\Http\Response\ApiResponse; use App\Models\Token; use Closure; use Illuminate\Http\Request; use Illuminate\Http\Response; use Tymon\JWTAuth\Exceptions\TokenExpiredException; use Tymon\JWTAuth\Exceptions\TokenInvalidException; use Tymon\JWTAuth\Facades\JWTAuth; class JWTAuthentication extends AppBaseController { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure(\Illuminate\Http\Request): (\Illuminate\Http\Response|\Illuminate\Http\RedirectResponse) $next * @return \Illuminate\Http\Response|\Illuminate\Http\RedirectResponse */ public function handle(Request $request, Closure $next) { try { $user = JWTAuth::parseToken()->authenticate(); } catch (\Exception $e) { if ($e instanceof TokenExpiredException) { return $this->sentResponseToken( Response::HTTP_UNAUTHORIZED, __('messages.error.token.expired'), Response::HTTP_UNAUTHORIZED ); } elseif ($e instanceof TokenInvalidException) { return $this->sentResponseToken( Response::HTTP_UNAUTHORIZED, __('messages.error.token.invalid'), Response::HTTP_UNAUTHORIZED ); } else { return $this->sentResponseToken( Response::HTTP_UNAUTHORIZED, __('messages.error.token.not_found'), Response::HTTP_UNAUTHORIZED ); } } return $next($request); } }
0

cứ 1,2 bài lại gặp ServBay 1 bài. Viblo ăn tiền quảng cáo kinh thế

0
Jul 30th, 8:02 a.m.

Các ý tưởng rất hay và dễ áp dụng, xin cảm ơn.

0

@harrypotterface Bạn đã fix chạy được chưa? Bạn có thể lấy source từ repo của mình về để run thử nhé. Nếu vẫn lỗi thì báo mình để mình check vì bài này mình viết khá lâu rồi.

0
Jul 30th, 1:20 a.m.

winrcomf

0

winrcomgg

0
Jul 30th, 12:39 a.m.

window viblo_1753835993663.png

0

Thông thường là như vậy đó bạn. Mình cũng hay dùng us-west-2, chi phí nó cũng khá rẻ. Còn một số region ở châu á như Tokyo hay Singapore chi phí khá là chát. Nếu chỉ dùng để nghiên cứu thì nên chọn us-east-1 hoặc us-west-2 cũng không sao

0
Jul 29th, 7:02 a.m.

Bài viết mặc dù chia sẽ khá kỹ, nhưng mình không đánh giá cao. Bác này đưa qúa nhiều vấn đề ko liên quan vào để ví dụ, mình thấy ko cần thiết, đọc sẽ rất rối. Cảm ơn.

0

hi a, cho em hỏi là region us-east-1 rẻ nhất cho hầu hết các service luôn hả a

0

đỉnh quá bạn ơiiiii

0
Jul 28th, 10:31 a.m.

hay !

0

Rất cần những bài dễ tiếp cận như này ạ.

0
Jul 28th, 2:21 a.m.

Cảm ơn bạn 😄

0
Jul 27th, 6:26 a.m.

cảm ơn đóng góp của anh, em cũng viết về series này mà bài của anh công nhận dễ tiếp cận

0

Hãy comment ý kiến và cảm ơn các ý kiến đóng góp của các bạn =)

0
Viblo
Hãy đăng ký một tài khoản Viblo để nhận được nhiều bài viết thú vị hơn.
Đăng kí