Skip to content

use debounce method in Rxjava to makes your app server HAPPY :D

Notifications You must be signed in to change notification settings

marjandn/Rx-Debounce

Repository files navigation

Rx-Debounce

use debounce method in Rxjava to make your app server HAPPY :D

some functions like search and check sth like username or sth like this that need to send request to server a lot in short time , can be destructive , and sometimes maybe crash app, for a lot request that app want to send,

so with magic RxJava and that rich operators, we can improve this functions. one of this effective operator is debounce that is made for that problems that i said,

in this source , i use debounce operator for checking username field in database

the server side api is

public string checkUsername(string username)
        {
            bool u = db.Users.Any(x => x.User_Username == username);
            
            if(u)
            {
                return "valid";
            }
            else
            {
                return "invalid";
            }
        }

Used

About

use debounce method in Rxjava to makes your app server HAPPY :D

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages