페이지

2021년 8월 13일 금요일

NLP-Natural Language Processing ( Regular Expressions )

 What and Why


1) What is it

 - A language to specify the rules for the set of possible strings that you want to search in a corpus of text

"You password must have at least 8 characters, at least 1 upper case letter, at least 1 lowercase letter, at least 1 number and at lleast 1 symbol from the special symbols"


2) Why

- Why not using a pyhton program for seaching?

- Why not string functions?

- Can these find everything one wants?




2021년 7월 25일 일요일

Spring RSocket Validation / Error Handling

* RSocket treats app exceptions as an ApplicationErrorException(string message)

* Raising error signal will end response

* Prefer

    - defaultIfEmpty

    - switchIfEmpty

    - onErrorReturn

* Send exception/error details as Item response

* @MessageExceptionHandler 

2021년 7월 23일 금요일

Spring RSocket API Model

RSocket Request : Response Input Type Output Tpye
Request & Response 1:1 Mono<T> Mono<R>
Fire & Forget       1:0 Mono<T> Mono<Void>
Request Stream 1:N Mono<T> Flux<R>
Request Channel M:N Flux<T> Flux<R>


Routing

@MessageMapping("create.user")
public Mono<User> createUser(Mono<User> usermono){
    return this.userService.create(usermono);
}

@MessageMapping("update,user")
public Mono<User> updateUser(Mono<User> usermono){
    return this.userService.update(usermono);
}

RSocketRequester W/O Data

rSocketRequester.route("product.all")
                 //.data()
                 .retrieveFlux(Product.class);


2021년 7월 17일 토요일

RSocket Response - Streaming vs Single List

  • Streaming T
    • Size - Potentially large /unknown
      • Pagination
      • Uber driver location updates
      • Online home-delivery update
    • Receiving side might take too much time to process
      • File upload
    • More effcient than multiple Request & Response calls

  • Single List<T>
    • Size is small & Data already in hand!
    • More efficient than streaming response

RSocket -> Peer-to-Peer

 




SocketAcceptor