silentsudo
open-menu closeme
Home
About
My Library
stackoverflow github gitlab linkedin rss
  • Handle exception from service classes in Spring-Boot

    calendar Jan 30, 2022 · 3 min read · spring-boot  ·
    Share on: twitter facebook linkedin copy

    Introduction While developing spring-boot apps I have faced challenge of handling exception from service methods. Any exception that are propogated from the Controllers are handled by @ControllerAdvice. AFAIK there is nothing called as @ServiceAdvice to handle any exception being thrown from service layer. Spring tool …


    Read More
  • Using CompletableFuture with RestTemplates in Spring-Boot Part 2

    calendar Dec 14, 2021 · 4 min read · rest-template  ·
    Share on: twitter facebook linkedin copy

    Complatable Future with RestTemplate In the previous article we learned how to use RestTemplate to call apis in sequence and compose their result and write to the client. We will try to optimize this now by makeing these 2 request work in parallel and return this response. We will same UserProfileSupplier & …


    Read More
  • Using CompletableFuture with RestTemplates in Spring-Boot Part 1

    calendar Nov 27, 2021 · 4 min read · rest-template  ·
    Share on: twitter facebook linkedin copy

    Use case RestTemplate is a synchronous web-client to perform http/s requests from spring applications. Configuration We first define the bean to be injected in our services using following config: 1@Configuration 2public class Config { 3 4 @Bean 5 public RestTemplate restTemplate() { 6 return new RestTemplate(); 7 } 8 …


    Read More
  • Create ndjson logging for spring boot applications

    calendar Nov 1, 2021 · 2 min read · logging json ndjson  ·
    Share on: twitter facebook linkedin copy

    Logging ndjson to a file We will configure spring-boot application to redirect logs to a file in ndjson format. See more information on ndjson Dependencies Add following dependencies to the pom.xml 1 <dependency> 2 <groupId>ch.qos.logback.contrib</groupId> 3 <artifactId>logback-json-classic</artifactId> 4 …


    Read More
  • Simple Social networking app with Node, Angular & MongoDB

    calendar Oct 7, 2021 · 2 min read · node mongodb angular  ·
    Share on: twitter facebook linkedin copy

    Web app background After writting backend application which no face to showcase or few personal projects which i started but never completed because of lack of ui(infact i do not like html & css at all). Have learned it before time caused me to show less interest during actual projects. But everyday a new ui and js …


    Read More
  • Integrating jsonwebtoken library in nodejs application

    calendar Sep 30, 2021 · 3 min read · auth jwt  ·
    Share on: twitter facebook linkedin copy

    Among other numerous jwt advantages, I prefer one more crucial jwt advantage of generating and validating it before hand and avoid the need to store it in database. Storing it in database also can be helpful but that is later topic of discussion. We store credentials of user in database using Bcrypt password hashing …


    Read More
  • Basic Query optimization in postgres

    calendar Jul 30, 2021 · 2 min read · sql postgres  ·
    Share on: twitter facebook linkedin copy

    Let's load dataset into postgres. Run postgres docker container 1docker run -d --name postgres-shared-buff-default -e POSTGRES_PASSWORD=ungabunga postgres If you use tools like pgadmin, please follow this link to import csv data into database. Let's see how many rows we have using count query. 1select count(id) from …


    Read More
  • Simple logstash, elastic search and kibana example

    calendar May 19, 2021 · 4 min read · logstash kibana elastic-search  ·
    Share on: twitter facebook linkedin copy

    Hello Everyone, now that we know how to use logstash from Post 1 and Post 2. This time we will load world cities data apply a few filters, transform it and store results in elastic search to analyze it. ELK Download 1wget https://artifacts.elastic.co/downloads/logstash/logstash-[version-os-arch].tar.gz 2wget …


    Read More
  • Event driven microservices with spring cloud stream binder rabbit

    calendar May 14, 2021 · 4 min read · spring-boot rabbitmq microservices event-driven spring-cloud-stream  ·
    Share on: twitter facebook linkedin copy

    "Human beings are always in a state of motion, interacting with their environment while sending out and receiving information from the things around them. Typically, these conversations aren’t synchronous, linear, or narrowly defined to a request-response model. It’s something more like a message-driven, where we’re …


    Read More
  • How to use logstash with twitter input plugin

    calendar May 12, 2021 · 4 min read · logstash twitter-input-plugin  ·
    Share on: twitter facebook linkedin copy

    Previosuly, we have learnt what is logstash and how to use it with basic standard input example and file as an output with a mutate filter to transform input message to upper cases. In this i will try to explain how we can use inbuilt plugin to stream data from services like twitter and store it into elastic search. …


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • »
    • »»

Ashish Agre

Hands-On Mobile & Backend Engineer
Read More

Featured Posts

  • Using CompletableFuture with RestTemplates in Spring-Boot Part 2
  • Using CompletableFuture with RestTemplates in Spring-Boot Part 1
  • Create ndjson logging for spring boot applications
  • Simple Social networking app with Node, Angular & MongoDB

Recent Posts

  • Fetch Current Logged In User in Controller
  • My zsh setup
  • Managing Multiple Docker Compose Apps as Systemd Services on Ubuntu
  • Setting Up Docker with Nvidia GPU
  • Expose data using Spring Boot and Spring AI framework

Categories

AIML 5 APACHE-NIFI 5 PYTHON 5 SPRING-BOOT 5 ELK 4 WEB-FRAMEWORK-JAVA 4 JSON 3 JAVA 2 DATABASE 1

Series

VECTOR SEARCH USING ELASTIC SEARCH 4 APACHE NIFI 2 1 CONCURRENCY IN JAVA 1

Tags

SPRING-BOOT 10 AIML 5 APACHE-NIFI-2 5 ELASTIC-SEARCH 5 PYTHON 5 ANGULAR 4 BOOTSTRAP 4 DATA-INGESTION 4 JUPYTER-NOTEBOOK 4 KNN 4 PANDAS 4 VECTOR-SEARCH 4 APACHE-KAFKA 3 AUTH 3
All Tags
ADABOOSTCLASSIFIER1 ADABOOSTREGRESSOR1 AIML5 ANGULAR4 APACHE-KAFKA3 APACHE-NIFI-25 AUTH3 BAGGINGCLASSIFIER1 BOOTSTRAP4 CITY1 COMMANDS1 COUNTRY1 DASH1 DATA-INGESTION4 DATSET1 DECISIONTREECLASSIFIER1 DECISIONTREEREGRESSOR1 DISTRIBUTED-SYSTEMS3 DOCKER3 ELASTIC-SEARCH5 ENSEMBLE-TECHNIQUE1 EVENT-DRIVEN1 EXTRATREESREGRESSOR1 FEATURE-ENGINEERING1 FFMPEG1 GOTCHAS3 GPU1 GRADIENTBOOSTINGCLASSIFIER1 GRADIENTBOOSTINGREGRESSOR1 GRADLE1 GRID-SEARCH-CV1 HASH1 HLS2 IMAGE-RECOGNITION1 INDEX1 JAVA2 JSON1 JUPYTER-NOTEBOOK4 JWT1 KAFKA-CONNECTOR1 KERAS1 KIBANA1 KNEIGHBORSREGRESSOR1 KNN4 LASSO1 LINEARREGRESSION1 LOGGING1 LOGISTIC REGRESSION1 LOGSTASH3 MICRONAUT2 MICROSERVICES1 MONGODB1 MONITORING1 NDJSON1 NODE1 OAUTH21 OBJECT-DETECTION1 OLLAMA2 PANDAS4 PCA1 POSTGRES1 PYTHON5 RABBITMQ1 RANDOM-SEARCH-SV1 RANDOMFORESTCLASSIFIER1 RANDOMFORESTREGRESSOR1 REDIS1 RESOURCE-SERVER1 REST-TEMPLATE2 RIDGE1 SCRIPTS1 SPRING-BOOT10 SPRING-CLOUD-STREAM1 SPRING-SECURITY2 SQL3 STATE1 STREAMING1 SUPERVISED-LEARNING1 SYSTEMD1 TENSORFLOW1 TIPS1 TWITTER-INPUT-PLUGIN1 UNSUPERVISED-LEARNING1 USER-INFO1 VECTOR-SEARCH4 VIDEO1 VIDEOJS1 ZSH1
[A~Z][0~9]
- By silentsudo

Copyright 2012-  - BY SILENTSUDO. All Rights Reserved

to-top