DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Newsletter
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones Build AI Agents That Are Ready for Production
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
Build AI Agents That Are Ready for Production

Just dropped: New 2026 “Cloud-Native Foundations” Trend Report. See how teams are tackling complexity, cost & reliability.

Avatar

Artem Artemev

lead java developer at IT-NLMK

Yerevan, AM

Joined Jan 2023

Stats

Reputation: 166
Pageviews: 62.8K
Articles: 4
Comments: 3
  • Articles
  • Comments

Articles

article thumbnail
Performance of ULID and UUID in Postgres Database
Don't know what data type to use for the primary key in Postgres? Let's take measurements for UUID and ULID and decide which is better.
November 15, 2023
· 27,534 Views · 10 Likes
article thumbnail
Can Redis Be Used as a Relational Database?
Explore how easy it is to work with Redis in Java + Spring, and find five differences from a relational database.
August 11, 2023
· 13,768 Views · 14 Likes
article thumbnail
Proper Java Exception Handling
Read this helpful article on handling exceptions correctly for peace of mind and to benefit your colleagues. Not only make you happy but also your colleagues.
August 1, 2023
· 16,316 Views · 20 Likes
article thumbnail
Architectural Miscalculation and Hibernate Problem "Type UUID but Expression Is of Type Bytea"
A story about how I tried to solve an architectural error with minimal code changes and what problems sometimes occur in popular libraries. So, let's go!
February 1, 2023
· 5,179 Views · 9 Likes

Comments

Performance of ULID and UUID in Postgres Database

Nov 16, 2023 · Artem Artemev

Thank you!

Proper Java Exception Handling

Aug 10, 2023 · Artem Artemev

I think it's a matter of taste what status to give an exception. In any case, this is a contract that you will write in confluence or swagger, what status your endpoint can return and what message codes can be received. On those projects where I work, there are old and new services with different practices. as for me personally, I prefer to use status 400. I hope I understand you correctly.

Proper Java Exception Handling

Aug 10, 2023 · Artem Artemev

How often do good names appear in examples? Besides, it's a matter of taste.

How the response is handled depends on how you invoke the requests. When I make a service and I know that it will be accessed by many different systems, then I simplify the work for everyone and make easy connector using Retrofit, and in case of a successful response, I simply return its body, otherwise I handle an exception for the calling service.

If the call is made by the ETL system, then the processing is about the same or even more convenient, because you can visually make different flows depending on the status and exception code that the service returned. To answer this question, you can write a whole article with examples. Judging by your place of work, I hope you know how to intercept not only status 200.


User has been successfully modified

Failed to modify user

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook